svelte-datepicker
svelte-datepicker copied to clipboard
bind to selected don't update selected
When I bind to selected property, there is no two-way binding, only component->variable. When I change variable, component doesn't update
Folks, I'm stepping on this one a year later, is there any appetite for a PR to get two way binding in? I guess this is most useful in form scenarios.
Key blocks worked for me.
{#key selected}
<DatePicker
{range}
{placeholder}
{format}
{selected}
{continueText}
on:range-selected={(e) => handleRange(e)}
/>
{/key}