-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
With a drag zone that overflows the browser window, when dragging an item outside the browser window, errors will appear on the console because using doc.elementFromPoint returns null. MDN doc of elementFromPoint
Lines 170 to 177 in 09ab978
| if (o.ignoreInputTextSelection) { | |
| var clientX = getCoord('clientX', e) || 0; | |
| var clientY = getCoord('clientY', e) || 0; | |
| var elementBehindCursor = doc.elementFromPoint(clientX, clientY); | |
| if (isInput(elementBehindCursor)) { | |
| return; | |
| } | |
| } |
and this line tries to access tagName attribute on that null object.
Line 604 in 09ab978
| function isInput (el) { return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA' || el.tagName === 'SELECT' || isEditable(el); } |
Screen.Recording.2024-06-21.at.13.53.22.mov
===
Dragula version: 3.7.3
Please only use GitHub issues for bug reports and feature requests.
- Read the contributing guidelines
- Bug reports containing repro steps are likely to be fixed faster
stevenkissack and phassis99
Metadata
Metadata
Assignees
Labels
No labels