Skip to content

<select> with bound shared state object #16353

@ghost

Description

Describe the bug

When updating a state object (e.g. to load an Entry in List), the change isn't reflected on select when bound to a nested entry of that state.

Possibly related to #16274, but rolling back to 5.34.8 also doesn't work as expected.

Reproduction

REPL

  • Choose from one of the two example entries
  • The chosen entry will be loaded into the "nextDeck" state object
  • The chosen entry will be reflected in the debug area and the description
  • BUG: the select element does not reflect the chosen entry
  • Expected behavior:
    • if the first entry is chosen, the select should display the "Jumbo" option as selected.
    • if the second entry is chosen, the select should display the "Dem La Rue" option as selected.

Logs

System Info

  svelte: ^5.35.6 => 5.35.6

Severity

annoyance

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