diff --git a/src/ListBox/ListBoxMenuItem.svelte b/src/ListBox/ListBoxMenuItem.svelte index d2318971..0679ba31 100644 --- a/src/ListBox/ListBoxMenuItem.svelte +++ b/src/ListBox/ListBoxMenuItem.svelte @@ -14,7 +14,7 @@ $: title = isTruncated ? ref?.innerText : undefined; $: if (highlighted && !ref?.matches(":hover")) { // Scroll highlighted item into view if using keyboard navigation - ref.scrollIntoView({ block: "end" }); + ref.scrollIntoView({ block: "nearest" }); }