fix: Fix the browser tests. (#8735)

(cherry picked from commit a86ba15154)
This commit is contained in:
Aaron Dodson
2025-01-16 10:37:24 -08:00
parent d95039db97
commit 6daa162a8c
6 changed files with 19 additions and 12 deletions

View File

@@ -264,7 +264,10 @@ export class Menu {
if (el) {
aria.setState(el, aria.State.ACTIVEDESCENDANT, item.getId());
}
item.getElement()?.scrollIntoView();
item.getElement()?.scrollIntoView({
block: 'nearest',
inline: 'start',
});
}
}