Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
qgh committed Jan 15, 2024
1 parent 146d67d commit 28904e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cocos/ui/editbox/edit-box-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 28904e5

Please sign in to comment.