Fixed #5635 - InputOp: Digits only doesn't work on mobile

pull/5638/head
tugcekucukoglu 2024-04-24 09:34:19 +03:00
parent 76c0c37ff7
commit 6004166df9
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export default {
break;
default:
if ((this.integerOnly && !((event.code.startsWith('Digit') || event.code.startsWith('Numpad')) && Number(event.key) >= 0 && Number(event.key) <= 9)) || (this.tokens.join('').length >= this.length && event.code !== 'Delete')) {
if ((this.integerOnly && !(Number(event.key) >= 0 && Number(event.key) <= 9)) || (this.tokens.join('').length >= this.length && event.code !== 'Delete')) {
event.preventDefault();
}