From 2cab7e459e9c5742e3e3975afa23df1b783fddb8 Mon Sep 17 00:00:00 2001 From: Kael Date: Thu, 16 Jan 2025 22:18:20 +1100 Subject: [PATCH] fix(VAutocomplete): allow searching when selected item is hightlighted fixes #20796 closes #20836 --- .../src/components/VAutocomplete/VAutocomplete.tsx | 14 +++++++------- .../vuetify/src/components/VCombobox/VCombobox.tsx | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx index d869a9a28fb..ea4ad190782 100644 --- a/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx +++ b/packages/vuetify/src/components/VAutocomplete/VAutocomplete.tsx @@ -229,10 +229,7 @@ export const VAutocomplete = genericComponent -1 || - ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key) - ) { + if (['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) { e.preventDefault() } @@ -265,6 +262,7 @@ export const VAutocomplete = genericComponent -1 || - ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key) - ) { + if (['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) { e.preventDefault() } @@ -326,6 +323,7 @@ export const VCombobox = genericComponent