Browse Source

fix: #2370 IE10 drag-and-drop support (#2426)

* Fix redraw order
* Fix IE10 support for dnd
readme-improvements
yotamberk 8 years ago
committed by Alexander Wunschik
parent
commit
66047acd63
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/ItemSet.js

+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -1850,7 +1850,7 @@ ItemSet.prototype._onAddItem = function (event) {
}; };
if (event.type == 'drop') { if (event.type == 'drop') {
var itemData = JSON.parse(event.dataTransfer.getData("text/plain"))
var itemData = JSON.parse(event.dataTransfer.getData("text"))
newItemData.content = itemData.content; // content is required newItemData.content = itemData.content; // content is required
newItemData.type = itemData.type || 'box'; newItemData.type = itemData.type || 'box';
newItemData[this.itemsData._fieldId] = itemData.id || util.randomUUID(); newItemData[this.itemsData._fieldId] = itemData.id || util.randomUUID();

Loading…
Cancel
Save