mirror of https://github.com/artf/grapesjs.git
Browse Source
Utils/Sorter will temporarily add a component to the collection in order to capture its properties, then remove it immediately. This triggers the component:add, component:remove, and change:changesCount events (and possibly others). The temporary addition/removal now includes an option flag 'temporary' which can be used in event handlers to detect this scenario. In addition, the editor.componentsUpdated handler performs the same check which prevents updating the changesCount as well as updating storage.pull/202/head
2 changed files with 10 additions and 4 deletions
Loading…
Reference in new issue