Skip to content

Commit

Permalink
draggable.toolbar.DragZone: onItemInsert() => use the wrapperCls inst…
Browse files Browse the repository at this point in the history
…ead of class #6379
  • Loading branch information
tobiu committed Feb 4, 2025
1 parent ff4fbfd commit 4c62361
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/draggable/toolbar/DragZone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ class DragZone extends BaseDragZone {
* @param {Neo.component.Base} data.item
*/
onItemInsert(data) {
let {item} = data,
cls = item.cls || [];
let {item} = data,
wrapperCls = item.wrapperCls || [];

NeoArray.add(cls, 'neo-draggable');
item.cls = cls
NeoArray.add(wrapperCls, 'neo-draggable');
item.wrapperCls = wrapperCls
}
}

Expand Down

0 comments on commit 4c62361

Please sign in to comment.