Merge pull request #6506 from EvanLrC/patch-1

feat :InputNumber: Accept Comma And NumpadDecimal as decimal "sign", o…
v3
Tuğçe Küçükoğlu 2024-11-14 13:45:37 +03:00 committed by GitHub
commit 2c351948bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -540,6 +540,11 @@ export default {
let isDecimalSign = this.isDecimalSign(char);
const isMinusSign = this.isMinusSign(char);
if (this.locale === 'fr-FR' && (event.code === 'Comma' || event.code === 'NumpadDecimal') && !isDecimalSign) {
isDecimalSign = true
char = decimalSign
}
if (event.code !== 'Enter') {
event.preventDefault();
}