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
Current behavior:
When opening a dialog, i get an exception:
aurelia-bootstrap.bundle.js:2448 Unhandled rejection TypeError: Cannot read property 'querySelectorAll' of undefined
at DialogRenderer.getOwnElements (http://localhost:8081/aurelia.bundle.js:6575:30)
at DialogRenderer.attach (http://localhost:8081/aurelia.bundle.js:6595:34)
at DialogRenderer.showDialog (http://localhost:8081/aurelia.bundle.js:6676:14)
at http://localhost:8081/aurelia.bundle.js:6789:46
From previous event:
at DialogService.composeAndShowDialog (http://localhost:8081/aurelia.bundle.js:6787:67)
at http://localhost:8081/aurelia.bundle.js:6849:26
From previous event:
at DialogService.open (http://localhost:8081/aurelia.bundle.js:6844:12)
at DfWorkflowCustomElement.showCommentDialog (http://localhost:8081/app.bundle.js:11751:42)
at DfWorkflowCustomElement.getWorkflowCommentThroughDialog (http://localhost:8081/app.bundle.js:11737:25)
at http://localhost:8081/app.bundle.js:11699:30
From previous event:
at DfWorkflowCustomElement.onSubmit (http://localhost:8081/app.bundle.js:11697:14)
at CallScope.evaluate (http://localhost:8081/aurelia.bundle.js:1535:19)
at Listener.callSource (http://localhost:8081/aurelia.bundle.js:5070:40)
at http://localhost:8081/aurelia.bundle.js:5094:22
at HTMLDocument.handleDelegatedEvent (http://localhost:8081/aurelia.bundle.js:3238:9)
Expected/desired behavior:
What is the expected behavior?
Dialog opens.
What is the motivation / use case for changing the behavior?
After some digging, the issue happens when the javascript appears in the <head> section of the page. The default renderer is executed as soon as the script is loaded and document.body is not yet in the page.
The body variable is initialized in dialog-renderer.ts::48.
A fix would be to simply grab the body when rendering the dialog, or when PAL says the platform is ready.
The text was updated successfully, but these errors were encountered:
I'm submitting a bug report
1.0.0-rc.1.0.3
Please tell us about your environment:
Operating System:
Windows 7
Node Version:
6.2.0
NPM Version:
3.8.9
JSPM OR Webpack AND Version
2.1.0-beta.27
Browser:
all
Language:
TypeScript 2.1
Current behavior:
When opening a dialog, i get an exception:
Expected/desired behavior:
What is the expected behavior?
Dialog opens.
What is the motivation / use case for changing the behavior?
After some digging, the issue happens when the javascript appears in the
<head>
section of the page. The default renderer is executed as soon as the script is loaded anddocument.body
is not yet in the page.The
body
variable is initialized in dialog-renderer.ts::48.A fix would be to simply grab the body when rendering the dialog, or when PAL says the platform is ready.
The text was updated successfully, but these errors were encountered: