Skip to content

Issue with reactive attributes and slot attribute order #5626

@ganigeorgiev

Description

@ganigeorgiev

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:

<button slot="footer" disabled={disabled}>Working</button>	
<button disabled={disabled} slot="footer">Not working</button>

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:

  • Svelte 3.29.4 (Rollup)
  • Chrome 86.0.4240.75
  • Fedora 32

Severity
I don't consider the issue severe, but it is annoying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions