Skip to content

Commit

Permalink
Fix scrolling into view for options
Browse files Browse the repository at this point in the history
  • Loading branch information
DTCurrie committed Aug 25, 2023
1 parent 667c939 commit 18600a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/select/searchable-select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const handleNavigate = (direction: number) => {
const element = menu.children[navigationIndex]!;
if (!isOptionInScrollView(element)) {
element.scrollIntoView();
element.scrollIntoView({ block: 'nearest' });
}
(element.children[0] as HTMLButtonElement).focus();
Expand Down

0 comments on commit 18600a6

Please sign in to comment.