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
There currently is no way to reset a range calendar to an unset state (without any range selected).
If you follow the stackblitz link below and click the "Clear days" button, nothing happens except a Object { start: undefined, end: undefined } message is logged.
I think this functionality should be there because the default state (with value not provided) is also without a selected range.
I delved a bit in the code and believe that the conditions in the $effect are the cause for this problem. The $effect only changes the value if value.start is set, removing the option to completely clear the range.
Describe the bug
There currently is no way to reset a range calendar to an unset state (without any range selected).
If you follow the stackblitz link below and click the "Clear days" button, nothing happens except a
Object { start: undefined, end: undefined }
message is logged.I think this functionality should be there because the default state (with value not provided) is also without a selected range.
I delved a bit in the code and believe that the conditions in the $effect are the cause for this problem. The $effect only changes the value if
value.start
is set, removing the option to completely clear the range.Reproduction
https://stackblitz.com/edit/github-yjqcum-oef9aoj9?file=src%2Froutes%2F%2Blayout.svelte,src%2Froutes%2F%2Bpage.svelte,src%2Froutes%2Fcalendar.svelte
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: