Skip to content

input bind doesn't work as expected since 5.36.0 #16413

@patoi

Description

@patoi

Describe the bug

There is a number input where the minimum and maximum values limit the number. When the user enters a number less or greater than the limits, the value will be set to the minimum or maximum value.

It works fine in versions 5.35.6 and earlier.

Reproduction

It works fine here:
https://svelte.dev/playground/04a9aff17b1b422c86782ac4b30acf0d?version=5.35.6

But it failing here:
https://svelte.dev/playground/04a9aff17b1b422c86782ac4b30acf0d?version=5.36.5

Logs

System Info

System:
    OS: macOS 15.5
    CPU: (14) arm64 Apple M3 Max
    Memory: 143.45 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    pnpm: 10.6.4 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
  Browsers:
    Chrome: 138.0.7204.157
    Edge: 138.0.3351.83
    Safari: 18.5
  npmPackages:
    svelte: 5.35.6 => 5.35.6

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions