gridstack.js icon indicating copy to clipboard operation
gridstack.js copied to clipboard

onchange(items) event not fired

Open jffaust opened this issue 11 years ago • 3 comments

The event is not fired when calling remove_widget with floating disabled. Let's say I have multiple widgets all in one column and I call remove_widget for the top widget. Since floating is disabled, all the widgets are pushed to the top, their attributes are changed (data-gs-x and data-gs-y) but the event about widgets changing position isn't called.

I think it shouldn't be hard/long to fix but I don't understand the code well enough to do the change myself.

Thank you

jffaust avatar Jun 15 '15 18:06 jffaust

:+1: I'm not seeing the change event fired on add or remove. Either it should do a self.container.trigger('change', [self.grid.get_dirty_nodes()]); or trigger an add/remove specific event.

mgwidmann avatar Jun 23 '15 18:06 mgwidmann

:+1: I miss this too

piwi91 avatar Jun 30 '15 08:06 piwi91

@troolee is there a workaround for this issue?

piwi91 avatar Jul 22 '15 11:07 piwi91