You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resize handles disappear after removing grid element from the DOM #2081
When grid element is removed from the DOM using el.remove() + removeWidget(el, false) instead of removeWidget(el, true), drag and drop handles of all the grid elements disappear.
In other words, if the element is removed directly through the DOM manipulation, before removeWidget is called, removeWidget called later is not able to remove it correctly. After a bit of debugging in the source code, it seemed like the problem comes from missing parent.
To give some context, we encountered this problem when displaying some elements with Vue. The list which the elements data is taken from changes, so Vue updates DOM by itself and it required a bit of ugly code to inject removeWidget before DOM update.
Activity
adumesny commentedon Oct 14, 2022
good bug report! looks like a v6+ issue (when I added tracking mouse enter).
caused by the line that has been there for a long time (3 years!), but now not removing DD can be seen as missing handles in v6
if (el.parentElement !== this.el) return;
adumesny commentedon Oct 14, 2022
fixed in v7.0.2