Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 555101c

Browse files
committed
fix drag on chromium browsers
1 parent ed33261 commit 555101c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/features/labels/labelTypeEditor.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ export class LabelTypeEditorUI extends AbstractUIExtension implements KeyListene
287287
// we check for the single click here, since this gets triggered before the ondblclick event
288288
if (valueInput.getAttribute("clicked") !== "true") {
289289
event.preventDefault();
290-
valueInput.blur();
290+
// the blur needs to occur with a delay, as otherwise chromium browsers prevent the drag
291+
setTimeout(() => {
292+
valueInput.blur();
293+
}, 0);
291294
}
292295
};
293296

0 commit comments

Comments
 (0)