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
Hello. It seems that I have found a bug in the object cloning area from a template to the grid. Following the example from the documentation, it is possible to observe that an element containing the attribute gs-max-w or gs-max-h, when cloned to the grid and then deleted from the grid using .trash or another class, any elements cloned by the same grid lose the gs-max-w or gs-max-h attribute. This can be observed even in the example documentation for two grids.
Bring the element to the grid and confirm that it has the max3 attr(on the dom the element lose this attr, but seems to work fine without it)
Removes the element from the dom dropping over a .trash class
Bring the same element to the grid again , and its lose the max-w.
Activity
adumesny commentedon Jun 1, 2023
good catch. yeah we don't write gs-max-w to dom as it's not used for rendering (only creation initial value).
actually don't need to delete. inserting second one looses.
adumesny commentedon Jun 12, 2023
the issue was caused by this in 8.x
but I don't know why we don't clone the entire griditem and just the content below. related to #1840 and #2231
don't clear (default) attr when dragging outside item in
adumesny commentedon Jun 12, 2023
fixed in next release. don't forget to doinate if you find this lib useful!
big sidepanel drag&drop helper rewrite
adumesny commentedon Oct 13, 2024
better fix in v11