From 8d9edfeeeac8d000c8ddd06354de9c873b83daed Mon Sep 17 00:00:00 2001 From: qiuguohua Date: Tue, 23 Jan 2024 10:34:41 +0800 Subject: [PATCH] fix conflicts (#16648) Co-authored-by: qgh <> --- cocos/ui/editbox/edit-box-impl.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cocos/ui/editbox/edit-box-impl.ts b/cocos/ui/editbox/edit-box-impl.ts index 8eca9ae9aa..2caea2f8d4 100644 --- a/cocos/ui/editbox/edit-box-impl.ts +++ b/cocos/ui/editbox/edit-box-impl.ts @@ -121,9 +121,12 @@ export class EditBoxImpl extends EditBoxImplBase { this._registerEventListeners(); this._addDomToGameContainer(); View.instance.on('canvas-resize', this._resize, this); + screenAdapter.on('window-resize', this._resize, this); } public clear (): void { + View.instance.off('canvas-resize', this._resize, this); + screenAdapter.off('window-resize', this._resize, this); this._removeEventListeners(); this._removeDomFromGameContainer();