Prevent dblclick inside collection name input from reactivating row

This commit is contained in:
Abe Jellinek 2024-01-08 12:28:30 -05:00 committed by Dan Stillman
parent ecf1595998
commit 0f4a9e1482

View file

@ -351,6 +351,7 @@ var CollectionTree = class CollectionTree extends LibraryTree {
label.addEventListener('input', e => this.handleEditingChange(e, index));
label.addEventListener('mousedown', (e) => e.stopImmediatePropagation());
label.addEventListener('mouseup', (e) => e.stopImmediatePropagation());
label.addEventListener('dblclick', (e) => e.stopImmediatePropagation());
label.addEventListener('blur', async (e) => {
await this.commitEditingName();
this.stopEditing();