Events propagation fails with hot reloaded templates #2481
Labels
bug
Something isn't working
core
relating to the core implementation of the virtualdom
fullstack
related to the fullstack crate
hot-reload
Related to the hot reload crate
Problem
I couldn't think of a better title. I've found some really strange Schrodinger-esque behavior on
main
. I have a modal that can be dismissed when you click on the backdrop area, while the modal content has anevent.stop_propagation()
call so that you can click within the modal without dismissing it.I found that it only worked the first time the modal was rendered. After the first time, if I opened the modal back up, it would dismiss when I clicked on the inner modal contents (that is, the stop propagation was no longer working).
The really interesting part is that the problem goes away if I include
tracing::debug!("blah");
statements 🙃Steps To Reproduce
Steps to reproduce the behavior:
fullstack
specific, the problem seems to go away onweb
.Expected behavior
It should just work without logging statements of course.
Environment:
main
fullstack
Questionnaire
The text was updated successfully, but these errors were encountered: