-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow binding to <details> open attribute #2854
Comments
Released in 3.4.3! https://svelte.dev/repl/386984e76c904955b085c3f282c03473?version=3.4.3 |
Styling doesn't appear to work for the tag when opened.
When the browser adds the open attribute on click of summary - the css is not generated for details[open] {} only for details {}
|
Seems like svelte doesn't know that details tags might get a open attribute (it's not reactively added), which requires |
thanks that did the trick :) |
I think it would make sense for the compiler to be able to see that |
Opened #3281. |
<details bind:open={variable}
is not supported right now. It would be nice if it would be.Toggling can be observed using an event listener for the
toggle
event:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details#Events
The text was updated successfully, but these errors were encountered: