Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6989c63

Browse files
committed
Prevents exception in IE11
1 parent082fe96 commit6989c63

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)

[8]ページ先頭

©2009-2025 Movatter.jp