Open
Description
Describe the bug
The documentation says:
If the input is empty or invalid (in the case of
type="number"
), the value isundefined
.
When the value is initialized, it is indeed undefined
. However, when later emptying the input, it becomes null
. In previous versions it did become undefined
- #1701 seems to be what changed it in order to fix a warning.
Reproduction
https://svelte.dev/repl/58ce9182263245d0b646d115d7e5e1e7?version=3.54.0
Logs
No response
System Info
System:
OS: macOS 10.15.7
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 1.92 GB / 32.00 GB
Shell: 3.5.1 - /usr/local/bin/fish
Binaries:
npm: 8.19.2 - ~/Library/Application Support/Volta/tools/image/node/18.12.1/bin/npm
Browsers:
Brave Browser: 107.1.45.131
Chrome: 108.0.5359.94
Firefox: 107.0
Firefox Developer Edition: 108.0
Safari: 15.6.1
npmPackages:
svelte: ^3.54.0 => 3.54.0
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels