Open homostellaris opened 2 years ago
Yep. Can confirm.
Use #key
to force re-render of the component
A quick example would be:
{#if showDatePicker}
<div class="datepicker-container-calendar" on:click={() => datePickerViewer()} on:keypress={() => datePickerViewer()} >
{#key dateSelected}
<Datepicker
{...setting.properties}
pickerRule='single'
viewDate={setting.value || new Date()}
bind:selected={dateSelected}
bind:pickerDone={datePickerDone}
/>
{/key}
</div>
{/if}
Can't provide a code example right now but just want to check this is supported?