You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
constructor(page: Page){super();// Get any view components we need from the interface/// ALL OF THIS WORK off the PAGEthis.emailContainer=<GridLayout>page.getViewById('emailContainer');this.passwordContainer=<GridLayout>page.getViewById('passwordContainer');this.emailTextField=<TextField>page.getViewById('emailTextField');this.passwordTextField=<TextField>page.getViewById('passwordTextField');console.log(getElementById);lety=getElementById('passwordTextField');// UNDEFINEDconsole.log('y: '+y);setTimeout(function(){letx=getElementById('passwordTextField');/// THIS WORKSconsole.log('x: '+x);},0);}
Yeah, I'm well aware of this issue; it is because the NS core framework does NOT setup the currentPage until way WAY late in the cycle; this causes the currentPage to either be null or point to the prior page.
So the timeout works with the function, although you can see it is available according to the first log of the function from the plugin.
The text was updated successfully, but these errors were encountered: