Skip to content

Commit

Permalink
fix(web): fix input autofocus
Browse files Browse the repository at this point in the history
applies to tag creation modal, and possibly other places
  • Loading branch information
xlotlu committed Jan 2, 2025
1 parent 3c35b46 commit 4a8706e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
onMount(() => {
if (autofocus) {
tick()
.then(() => input?.focus())
.then(() => setTimeout(() => input?.focus(), 0))
.catch((_) => {});
}
});
Expand Down

0 comments on commit 4a8706e

Please sign in to comment.