trash zone is accepting only widgets

This commit is contained in:
Pavel Reznikov 2016-02-27 18:46:41 -08:00
parent ba1ee253bb
commit 67274f873c

View file

@ -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) {