Skip to content

Commit

Permalink
Remove Svelte 4 dynamic input type workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Nov 15, 2024
1 parent 681ef62 commit 04b7bf4
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@

<div role="none">
<input
{...{
// @see https://github.com/sveltejs/svelte/issues/3921
type: dateOnly ? 'date' : timeOnly ? 'time' : 'datetime-local',
}}
type={dateOnly ? 'date' : timeOnly ? 'time' : 'datetime-local'}
bind:value={inputValue}
{readonly}
aria-readonly={readonly}
Expand Down

0 comments on commit 04b7bf4

Please sign in to comment.