Skip to content

Commit

Permalink
fix(VMenu): allow enter keypress to work in textareas (#19768)
Browse files Browse the repository at this point in the history
fixes #19767
  • Loading branch information
curtgrimes committed May 13, 2024
1 parent e36f7bc commit 19ddcef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VMenu/VMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const VMenu = genericComponent<OverlaySlots>()({
if (props.disabled) return

if (e.key === 'Tab' || (e.key === 'Enter' && !props.closeOnContentClick)) {
if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return
if (e.key === 'Enter') e.preventDefault()

const nextElement = getNextElement(
Expand Down

0 comments on commit 19ddcef

Please sign in to comment.