mirror of https://github.com/artf/grapesjs.git
Browse Source
Removing a component (directly or via replaceWith) left it in the editor's Selected collection, since only the core:component-delete command deselected explicitly. The stale entry breaks anything iterating the selection and, with UndoManager's trackSelection, lets undo restore a selection pointing at removed components. Deselect in Components.removeChildren so every non-temporary removal path is covered. Temporary and undo-driven removals are unaffected.pull/6803/head
committed by
GitHub
2 changed files with 45 additions and 0 deletions
Loading…
Reference in new issue