From b17ed7924e60500030a2013507201c6a0a2d7b53 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 7 Sep 2021 10:06:38 +0300 Subject: [PATCH] Fixed #1509 - Add getFormatter method to InputNumber --- src/components/inputnumber/InputNumber.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/inputnumber/InputNumber.vue b/src/components/inputnumber/InputNumber.vue index 792763568..2f8417b19 100755 --- a/src/components/inputnumber/InputNumber.vue +++ b/src/components/inputnumber/InputNumber.vue @@ -477,7 +477,7 @@ export default { event.preventDefault(); if (selectionStart === selectionEnd) { - let deleteChar = inputValue.charAt(selectionStart); + const deleteChar = inputValue.charAt(selectionStart); const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue); if (this.isNumeralChar(deleteChar)) { @@ -938,6 +938,9 @@ export default { formattedValue() { const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue; return this.formatValue(val); + }, + getFormatter() { + return this.numberFormat; } }, components: {