Skip to content

select with reactive disabled attribute hides the binded value #16030

Closed
@ivenuss

Description

@ivenuss

Describe the bug

Might relate to: #16017.

After upgrading to 5.33.5 select with disabled state behaves unexpectedly.

When setting disabled attribute to select component (just a wrapper around select element), then the binded value suddenly disappears.

While reproducing the issue I figured out few things:

  • select has to be in separated file as component to reproduce it
  • if you remove the bind bind:value and change it to value={value} inside select component, it works
  • when I remove disabled prop from select component, it works

Reproduction

Broken >= 5.33.5

https://svelte.dev/playground/6d9f0dbfa2c74e8f88483dd90d0abfd6?version=5.33.7

Working < 5.33.5

https://svelte.dev/playground/6d9f0dbfa2c74e8f88483dd90d0abfd6?version=5.33.4

System Info

"svelte": "^5.33.7",
"@sveltejs/kit": "^2.21.1"

Severity

blocking an upgrade

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