-
-
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
Issue with reactive attributes and slot attribute order #5626
Comments
You have a typo in your REPL: |
@kevmodrome @Conduitry Actually, no. I've updated the description of the bug. The typo was one thing but it seems that if both buttons have the slot attribute at the end (or only one of the button is left) it doesn't work any more. See the updated repl - https://svelte.dev/repl/c90a72f4f9b14fde8775e81a22f44527?version=3.29.4 |
Describe the bug
It seems that changes to reactive attributes are not reflected if the
slot="..."
attribute is defined at the end (or after the reactive attributes) of a named slot element. Example:EDIT
The above actually will work, but if both buttons have the slot attribute at the end, the disabled state is no longer reactive. So definitely there seems to be some issue with the order of occurrence of the slot attribute.
Logs
Nothing is logged. It just silently ignore the new state.
To Reproduce
Check the following repl - https://svelte.dev/repl/c90a72f4f9b14fde8775e81a22f44527?version=3.29.4
Expected behavior
I expect the order of the
slot
attribute to not have effect on the other reactive attributes.Information about your Svelte project:
Severity
I don't consider the issue severe, but it is annoying.
The text was updated successfully, but these errors were encountered: