From 09c294b9fabbb015ee0cbb02319782507c16da54 Mon Sep 17 00:00:00 2001 From: SonTT19 <49301480+SonTT19@users.noreply.github.com> Date: Tue, 9 Jul 2024 22:50:43 +0700 Subject: [PATCH] fix(VNumberInput): allow press delete key (#20125) fixes #20083 --- packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx b/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx index 23f6f241263..75d77da5ef7 100644 --- a/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx +++ b/packages/vuetify/src/labs/VNumberInput/VNumberInput.tsx @@ -133,7 +133,7 @@ export const VNumberInput = genericComponent()({ function onKeydown (e: KeyboardEvent) { if ( - ['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Tab'].includes(e.key) || + ['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) || e.ctrlKey ) return