Skip to content

Commit

Permalink
fix(search): hoist ignore a11y autofocus comment
Browse files Browse the repository at this point in the history
In Svelte 5, the comment is ignored when it's above the input element. Setting the comment at the top-level resolves the issue.
  • Loading branch information
metonym authored and theetrain committed Mar 7, 2024
1 parent 8bffc17 commit 6152b78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Search/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
$: dispatch(expanded ? "expand" : "collapse");
</script>

<!-- svelte-ignore a11y-autofocus -->
{#if skeleton}
<SearchSkeleton
size="{size}"
Expand Down

0 comments on commit 6152b78

Please sign in to comment.