svelte-datepicker icon indicating copy to clipboard operation
svelte-datepicker copied to clipboard

Formatted value doesn't update

Open mcmxcdev opened this issue 4 years ago • 1 comments

See: https://svelte.dev/repl/0062ae61dfb34507801ec5b38e344609?version=3.31.2

While the selected underlying value updates, the formatted value doesn't update accordingly.

I need the date picker value and formatted value to react to svelte-forms-lib updateIntialValues() after a GET request.

This means that the date picker is initialized without any value and then has to update after xyz seconds without any manual interaction.

mcmxcdev avatar Jan 25 '21 08:01 mcmxcdev

This makes sense, the value isn't bound and is set in a store upon init. We'd have to somehow watch for those values and re-init the context if they are updated.

antony avatar Jan 25 '21 09:01 antony