Merge pull request #6768 from sivareddyuppathi/master

fix: InputNumber does not work on Android devices fix
pull/6775/head
Tuğçe Küçükoğlu 2024-11-13 11:11:35 +03:00 committed by GitHub
commit 9e548f8a8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -387,8 +387,9 @@ export default {
let selectionEnd = event.target.selectionEnd; let selectionEnd = event.target.selectionEnd;
let inputValue = event.target.value; let inputValue = event.target.value;
let newValueStr = null; let newValueStr = null;
const code = event.code || event.key;
switch (event.code) { switch (code) {
case 'ArrowUp': case 'ArrowUp':
this.spin(event, 1); this.spin(event, 1);
event.preventDefault(); event.preventDefault();