From 412ad7b480d251a0ff5e7f2949565b83f3988dca Mon Sep 17 00:00:00 2001 From: SgLy <775150558@qq.com> Date: Tue, 22 Oct 2024 14:57:47 +0800 Subject: [PATCH] fix(core): NativeNode placeholderHandler do not initialized properly --- glass-easel/src/native_node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glass-easel/src/native_node.ts b/glass-easel/src/native_node.ts index 660d6c0..b0c79ac 100644 --- a/glass-easel/src/native_node.ts +++ b/glass-easel/src/native_node.ts @@ -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) { @@ -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()