You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
let value;
</script>
<inputtype="date" />
<inputtype="date"bind:value />
Select a random date on both date pickers.
Select the first segment of the first date picker and press the "0" button: The selected segment is set to "00", while the other two segments remain at their previous value. This works as intended across all tested browsers.
Select the first segment of the second date picker (using bind:value) and press the "0" button: All three segments are reset to their default (empty) value. Svelte here seems to change the default browser behavior of date pickers.
Logs
No response
System Info
—
Severity
annoyance
The text was updated successfully, but these errors were encountered:
Yes, here is some "magic". But this is by design.
Svelte make complete value invalid, if here are invalid parts.
But only if you bind value.
Here is also some magic with input type="number".
Describe the bug
Svelte seems to mess up
input type="date"
element behavior having a bound value.See the reproduction steps for more details.
Reproduction
bind:value
) and press the "0" button: All three segments are reset to their default (empty) value. Svelte here seems to change the default browser behavior of date pickers.Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: