Skip to content

Commit 6989c63

Browse files
committed
Prevents exception in IE11
1 parent 082fe96 commit 6989c63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sortable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ function onDragStart(event: DragEvent) {
6161

6262
// Add data to drag operation (required for Firefox).
6363
if (event.dataTransfer) {
64-
event.dataTransfer.setData('text/plain', target.textContent.trim())
64+
// Use text instead of text/plain for IE11 support
65+
event.dataTransfer.setData('text', target.textContent.trim())
6566
}
6667

6768
if (!target.parentElement) return

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy