We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b5bf50 commit 193301cCopy full SHA for 193301c
packages/vuetify/src/components/VMenu/VMenu.tsx
@@ -127,7 +127,11 @@ export const VMenu = genericComponent<OverlaySlots>()({
127
if (props.disabled) return
128
129
if (e.key === 'Tab' || (e.key === 'Enter' && !props.closeOnContentClick)) {
130
- if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return
+ if (
131
+ e.key === 'Enter' &&
132
+ ((e.target instanceof HTMLTextAreaElement) ||
133
+ (e.target instanceof HTMLInputElement && !!e.target.closest('form')))
134
+ ) return
135
if (e.key === 'Enter') e.preventDefault()
136
137
const nextElement = getNextElement(
0 commit comments