Skip to content

For invalid inputs in input type number, the bound value (using bind:value={val}) is null and not undefined. #15811

@theAnuragMishra

Description

@theAnuragMishra

Describe the bug

https://svelte.dev/docs/svelte/bind#input-bind:value
the docs here say it is undefined in the case of an empty or a invalid input. but is null in the case of an invalid input.

Reproduction

https://svelte.dev/playground/064fcdbe349a4ee2887a12ee696b5730?version=5.28.1

Logs

System Info

i m using svelte playground, svelte 5.28.1.

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