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
I think you should leave the events as they are, because let us say you had the following:
<div id="top-div">
<!-- child content -->
</div>
If you have an event listener on #top-div and you call set-html! on #top-div, those event listeners are wiped out. It seems like this doesn't need to be the case, because it's just the inner html that is getting changed, not #top-div.
The text was updated successfully, but these errors were encountered:
Just wanted to say that I've been bitten by the same problem. (Sorry, no time to contribute a Pull Request now, I'll just set the innerHTML property directly to work around it.)
I think you should take out the line of https://github.com/levand/domina/blob/master/src/cljs/domina.cljs#L385
I think you should leave the events as they are, because let us say you had the following:
If you have an event listener on #top-div and you call set-html! on #top-div, those event listeners are wiped out. It seems like this doesn't need to be the case, because it's just the inner html that is getting changed, not #top-div.
The text was updated successfully, but these errors were encountered: