[Webkit-unassigned] [Bug 268959] event.target is incorrect when dragging selected text
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 7 19:56:26 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=268959
--- Comment #1 from alexreardon at gmail.com ---
For the workaround:
```diff
- if (!(event.target instanceof HTMLElement)) {
- return null;
- }
+ // return `null` if there is no dataTransfer, or if `getData()` returns ""
+ if (!event.dataTransfer?.getData('text/plain')) {
+ return null;
+ }
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240208/8797c0c1/attachment-0001.htm>
More information about the webkit-unassigned
mailing list