mirror of https://github.com/artf/grapesjs.git
4 changed files with 48 additions and 3 deletions
@ -0,0 +1,10 @@ |
|||||
|
import Component from './Component'; |
||||
|
import Components from './Components'; |
||||
|
import { detachSymbolInstance, getSymbolInstances } from './SymbolUtils'; |
||||
|
|
||||
|
export default class Symbols extends Components { |
||||
|
removeChildren(removed: Component, coll?: Components, opts: any = {}) { |
||||
|
super.removeChildren(removed, coll, opts); |
||||
|
getSymbolInstances(removed)?.forEach(i => detachSymbolInstance(i, { skipRefs: true })); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue