From c0cccd08f9f28e6fd7597f4a3a90f84fa48ea322 Mon Sep 17 00:00:00 2001 From: "jiaxin.lai" Date: Fri, 26 Jul 2019 18:17:57 +0800 Subject: [PATCH] using Node instead of cc.Node (#4998) --- cocos/3d/ui/components/editbox/edit-box-component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/3d/ui/components/editbox/edit-box-component.ts b/cocos/3d/ui/components/editbox/edit-box-component.ts index b861075501..d047548ba3 100644 --- a/cocos/3d/ui/components/editbox/edit-box-component.ts +++ b/cocos/3d/ui/components/editbox/edit-box-component.ts @@ -42,7 +42,7 @@ import { UITransformComponent } from '../ui-transfrom-component'; import { EditBoxImpl } from './edit-box-impl'; import { InputFlag, InputMode, KeyboardReturnType } from './types'; import { INode } from '../../../../core/utils/interfaces'; -import { Node } from '../../../../scene-graph'; +import { Node } from '../../../../scene-graph/node'; const LEFT_PADDING = 2; @@ -644,9 +644,9 @@ export class EditBoxComponent extends Component { } if (!this._placeholderLabel) { - let node = this.node.getChildByName('PLACEHOLDER_LABEL') as INode; + let node = this.node.getChildByName('PLACEHOLDER_LABEL'); if (!node) { - node = new cc.Node('PLACEHOLDER_LABEL') as INode; + node = new Node('PLACEHOLDER_LABEL') as INode; } let placeholderLabel = node!.getComponent(LabelComponent); if (!placeholderLabel) {