Skip to content

Commit

Permalink
Merge pull request #748 from appwrite/feat-input-date-click-area
Browse files Browse the repository at this point in the history
Update the date and time inputs to open on click
  • Loading branch information
TorstenDittmann authored Jan 30, 2024
2 parents c59c8ba + c28feb3 commit ade03a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/elements/forms/inputDate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 4 additions & 1 deletion src/lib/elements/forms/inputTime.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ade03a2

Please sign in to comment.