Skip to content

Commit

Permalink
Merge pull request #207 from SgLy/fix-placeholder-remover
Browse files Browse the repository at this point in the history
fix(core): NativeNode placeholderHandler do not initialized properly
  • Loading branch information
LastLeaf authored Oct 22, 2024
2 parents 9f9ffd8 + 412ad7b commit f17a552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glass-easel/src/native_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export class NativeNode extends Element {
const node = Object.create(NativeNode.prototype) as NativeNode
node.is = tagName
node.stylingName = stylingName ?? tagName
node._$placeholderHandlerRemover = placeholderHandlerRemover
const nodeTreeContext = owner.getBackendContext()
let backendElement: GeneralBackendElement | null = null
if (nodeTreeContext) {
Expand All @@ -55,6 +54,7 @@ export class NativeNode extends Element {
if (ENV.DEV) performanceMeasureEnd()
}
node._$initialize(false, backendElement, owner, owner._$nodeTreeContext)
node._$placeholderHandlerRemover = placeholderHandlerRemover
const ownerHost = owner.getHostNode()
const ownerComponentOptions = ownerHost.getComponentOptions()
const styleScope = ownerComponentOptions.styleScope ?? StyleScopeManager.globalScope()
Expand Down

0 comments on commit f17a552

Please sign in to comment.