Skip to content

Commit

Permalink
fix(Menu): don’t scroll menus in response to hover (#1030)
Browse files Browse the repository at this point in the history
from RadixUI
  • Loading branch information
sadeghbarati committed Jun 24, 2024
1 parent 3d3e3c9 commit 5ec7f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Menu/MenuItemImpl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function handlePointerMove(event: PointerEvent) {
const defaultPrevented = contentContext.onItemEnter(event)
if (!defaultPrevented) {
const item = event.currentTarget;
(item as HTMLElement)?.focus()
(item as HTMLElement)?.focus({ preventScroll: true })
}
}
}
Expand Down

0 comments on commit 5ec7f5a

Please sign in to comment.