Skip to content

Commit 46c2b27

Browse files
committed
Don't break accessibility with Input
1 parent b3cfb36 commit 46c2b27

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib/Input.svelte

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@
3030
<label
3131
class="label"
3232
for={name}
33-
onclick={select}
34-
onkeyup={select}
35-
onkeydown={select}
33+
onclick={focused ? null : select}
34+
onkeyup={focused ? null : select}
35+
onkeydown={focused ? null : select}
3636
role="button"
37-
tabindex={0}
3837
>
3938
{label}
4039
</label>

0 commit comments

Comments
 (0)