From fd0280a3c570c24e233c031b2b22b2dc5e1720c2 Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Wed, 13 Nov 2024 01:48:44 +0530 Subject: [PATCH] fix: InputNumber does not work on Android devices fix --- packages/primevue/src/inputnumber/InputNumber.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/primevue/src/inputnumber/InputNumber.vue b/packages/primevue/src/inputnumber/InputNumber.vue index 9c76a08b6b..01e0a4e4ac 100755 --- a/packages/primevue/src/inputnumber/InputNumber.vue +++ b/packages/primevue/src/inputnumber/InputNumber.vue @@ -387,8 +387,9 @@ export default { let selectionEnd = event.target.selectionEnd; let inputValue = event.target.value; let newValueStr = null; + const code = event.code || event.key; - switch (event.code) { + switch (code) { case 'ArrowUp': this.spin(event, 1); event.preventDefault();