fix: dragging files selects no text; without a drag the names select as before
This commit is contained in:
1 parent
bc1736f105
commit
96163ebf86
2 files changed
+5
-1
No files matched your search
@@ -50,6 +50,9 @@
|
||||
begin();
|
||||
}
|
||||
d.ghost.style.transform = 'translate(' + (ev.clientX + 12) + 'px,' + (ev.clientY + 10) + 'px)';
|
||||
// What the browser began to select before the drag was told apart goes.
|
||||
const sel = getSelection();
|
||||
if (sel && !sel.isCollapsed) sel.removeAllRanges();
|
||||
d.target = null;
|
||||
box.hidden = true;
|
||||
d.ghost.dataset.hint = '';
|
||||
|
||||
Reference in new issue
Block a user