Skip to content

Commit

Permalink
Remove requestAnimationFrame to test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
acbreton committed Feb 12, 2025
1 parent c266e4d commit 94a1ac5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ export class ActionMenuElement extends HTMLElement {
const eventIsActivation = this.#isActivation(event)

if (event.type === 'toggle' && (event as ToggleEvent).newState === 'open') {
window.requestAnimationFrame(() => {
this.#firstItem?.focus({preventScroll: true})
})
this.#firstItem?.focus({preventScroll: true})
}

if (targetIsInvoker && event.type === 'mousedown') {
Expand Down

0 comments on commit 94a1ac5

Please sign in to comment.