Skip to content

Commit 69d2df1

Browse files
author
Derek Moore
committed
stop propagation of events so nested grids don't affect parents
1 parent 4a80e41 commit 69d2df1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gridstack.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@
641641
}
642642
self.grid.move_node(node, x, y, width, height);
643643
self._update_container_height();
644+
event.stopPropagation();
644645
};
645646

646647
var on_start_moving = function(event, ui) {
@@ -660,6 +661,7 @@
660661

661662
el.resizable('option', 'minWidth', cell_width * (node.min_width || 1));
662663
el.resizable('option', 'minHeight', self.opts.cell_height * (node.min_height || 1));
664+
event.stopPropagation();
663665
};
664666

665667
var on_end_moving = function(event, ui) {
@@ -677,6 +679,7 @@
677679
self._trigger_change_event();
678680

679681
self.grid.end_update();
682+
event.stopPropagation();
680683
};
681684

682685
el

0 commit comments

Comments
 (0)