-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them
Description
Describe the bug
When using (a lot of) JavaScript, for instance my VueJS application, elements of the debugbar do not seem to be ready yet in the DOM, when the debugbar tries to modify those. Error in console:
Uncaught TypeError: Cannot set property 'innerHTML' of null
at XMLHttpRequest.<anonymous> (index.php?debugbar:77)
CodeIgniter 4 version
CodeIgniter 4.0.2
Affected module(s)
system/Debug/Toolbar.php
I've created a PR to load the debugbar script right before the closing body tag, which solves this issue: #2620.
I now see it might re-introduce other issues. @najdanovicivan Does my PR conflict with yours (#2494)?
Metadata
Metadata
Assignees
Labels
bugVerified issues on the current code behavior or pull requests that will fix themVerified issues on the current code behavior or pull requests that will fix them