Update the date and time inputs to open on click

The default behavior is to open only when clicking the icon, but
it may be difficult to click such a small icon. This change updates
the input so that the picker opens when the input is clicked.
This commit is contained in:
Steven Nguyen committed 2024-01-28 22:25:29 -06:00
1 parent c3907e434a
commit c28feb378c
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -75,6 +75,9 @@
bind:value
bind:this={element}
on:invalid={handleInvalid}
on:click={function () {
this.showPicker();
}}
style:--amount-of-buttons={isNullable ? 2.75 : 1}
style:--button-size={isNullable ? '2rem' : '1rem'} />
{#if isNullable}
+4 -1
View File
@@ -59,7 +59,10 @@
class="input-text"
bind:value
bind:this={element}
on:invalid={handleInvalid} />
on:invalid={handleInvalid}
on:click={function () {
this.showPicker();
}} />
</div>
{#if error}
<Helper type="warning">{error}</Helper>