update input
This commit is contained in:
@@ -268,6 +268,7 @@ export class InputComponent {
|
||||
|
||||
private writeControlAndViewValue(target: HTMLInputElement, value: string, numericValue: number) {
|
||||
const isIdentifierField = this.isIdentifierField();
|
||||
|
||||
const controlValue = isIdentifierField ? value : value === '' ? '' : numericValue;
|
||||
this.control.setValue(controlValue);
|
||||
target.value = value;
|
||||
@@ -289,6 +290,7 @@ export class InputComponent {
|
||||
value = this.enforceMaxLength(value);
|
||||
|
||||
let numericValue = this.parseNumericValue(value);
|
||||
|
||||
const range = this.isOutOfRange(numericValue);
|
||||
if (value !== '' && (range.min || range.max)) {
|
||||
this.notifyRangeError(range);
|
||||
|
||||
Reference in New Issue
Block a user