diff --git a/packages/primevue/src/inputnumber/InputNumber.vue b/packages/primevue/src/inputnumber/InputNumber.vue index 9c76a08b6..01e0a4e4a 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();