Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VMenu): allow enter keypress to work in textareas #19768

Merged
merged 7 commits into from
May 13, 2024
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