htmx 1.9.9 and different behaviors with DOMContentLoaded event #2033
Answered
by
Telroshan
CleitonDeLima
asked this question in
Q&A
-
The behavior of the following code is behaving differently than the previous version of htmx: htmx 1.9.8 document.addEventListener("DOMContentLoaded", () => {
htmx.onLoad(() => console.log('fired!'))
});
>>> fired! htmx 1.9.9 document.addEventListener("DOMContentLoaded", () => {
htmx.onLoad(() => console.log('fired!'))
});
>>> In version 1.9.8 |
Beta Was this translation helpful? Give feedback.
Answered by
Telroshan
Nov 23, 2023
Replies: 1 comment
-
Hey, it's indeed a bug, thanks for the report |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CleitonDeLima
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, it's indeed a bug, thanks for the report
Submitted a fix for it in #2037
Don't hesitate to open issues instead of discussions when you encounter problems like this btw!