From 67274f873cfa701cb5d8353e83d042444d3c1f60 Mon Sep 17 00:00:00 2001 From: Pavel Reznikov Date: Sat, 27 Feb 2016 18:46:41 -0800 Subject: [PATCH] trash zone is accepting only widgets --- src/gridstack.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gridstack.js b/src/gridstack.js index 6e61887..213ae87 100644 --- a/src/gridstack.js +++ b/src/gridstack.js @@ -671,7 +671,9 @@ if (typeof self.opts.removable === 'string') { var trashZone = $(self.opts.removable); if (!trashZone.data('droppable')) { - trashZone.droppable({}); + trashZone.droppable({ + accept: '.' + self.opts.itemClass + }); } trashZone .on('dropover', function(event, ui) {