Skip to content

Commit

Permalink
fix(core): placeholderHandler do not trigger properly
Browse files Browse the repository at this point in the history
  • Loading branch information
SgLy committed Oct 21, 2024
1 parent c1fdece commit 3215efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glass-easel/src/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,9 @@ export class Element implements NodeCast {
if (elem._$destroyOnRemoval === AutoDestroyState.Enabled) {
elem._$destroyOnRemoval = AutoDestroyState.Destroyed
elem.destroyBackendElement()
const f = elem._$placeholderHandlerRemover
if (typeof f === 'function') f()
}
const f = elem._$placeholderHandlerRemover
if (typeof f === 'function') f()
}
rec(node)
} else if (node._$destroyOnRemoval === AutoDestroyState.Enabled) {
Expand Down

0 comments on commit 3215efc

Please sign in to comment.