fix: Fix the browser tests. (#8735)

This commit is contained in:
Aaron Dodson
2025-01-16 10:37:24 -08:00
committed by GitHub
parent 640410752d
commit a86ba15154
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',
});
}
}