Merge pull request #748 from appwrite/feat-input-date-click-area

Update the date and time inputs to open on click
This commit is contained in:
Torsten Dittmann
2024-01-30 08:34:15 +01:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+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>