refactor: new stage UI node finder
This commit is contained in:
parent
652e96db4b
commit
c46109272a
|
@ -63,8 +63,9 @@ export class TextNodeRenderer extends Proton.BaseRender {
|
|||
this._nodePool = new Proton.Pool();
|
||||
this.queued = [];
|
||||
this.stage = stage;
|
||||
stage.uiPromise.then(() => {
|
||||
this.parent = stage.ui.querySelector(selector);
|
||||
const promise = stage.findUiElement(selector);
|
||||
promise.then((element) => {
|
||||
this.parent = element;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user