Closed onionjake closed 2 years ago
If this is the same code as #37 wrapping the Outside and inside with a span will prevent the body from being patched which I believe is what is closing the details tag.
Adding the span does the trick. Perhaps there should be a note of some sort in the readme?
If live could detect when it is having to patch a larger element and issue a warning that would be helpful too.
This is using v0.12.1 on Firefox.
The
details
element will always revert to being closed whenever the DOM is patched. Try by opening the 'Advanced' details section, then pressing theInside
orOutside
buttons. I added theNothing
button to show that it is only when things are modified (and not just the triggering of a live event).Here is the source code used: