From 19ddcef6cfcfbd62e86730e4d43926d5ca7b1f1d Mon Sep 17 00:00:00 2001 From: Curt Grimes Date: Mon, 13 May 2024 12:10:52 -0500 Subject: [PATCH] fix(VMenu): allow enter keypress to work in textareas (#19768) fixes #19767 --- packages/vuetify/src/components/VMenu/VMenu.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vuetify/src/components/VMenu/VMenu.tsx b/packages/vuetify/src/components/VMenu/VMenu.tsx index 7ac262c0b47..02fcdad31a7 100644 --- a/packages/vuetify/src/components/VMenu/VMenu.tsx +++ b/packages/vuetify/src/components/VMenu/VMenu.tsx @@ -126,6 +126,7 @@ export const VMenu = genericComponent()({ 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(