Merge pull request #6506 from EvanLrC/patch-1
feat :InputNumber: Accept Comma And NumpadDecimal as decimal "sign", o…v3
commit
2c351948bc
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue