Skip to content

Commit 67274f8

Browse files
committed
trash zone is accepting only widgets
1 parent ba1ee25 commit 67274f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gridstack.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,9 @@
671671
if (typeof self.opts.removable === 'string') {
672672
var trashZone = $(self.opts.removable);
673673
if (!trashZone.data('droppable')) {
674-
trashZone.droppable({});
674+
trashZone.droppable({
675+
accept: '.' + self.opts.itemClass
676+
});
675677
}
676678
trashZone
677679
.on('dropover', function(event, ui) {

0 commit comments

Comments
 (0)