update error handler
This commit is contained in:
@@ -31,8 +31,13 @@
|
||||
[attr.maxlength]="preparedMaxLength || null"
|
||||
[attr.type]="htmlType"
|
||||
[attr.autocomplete]="autocomplete"
|
||||
[class]="
|
||||
`${inputClass} w-full ${size === 'large' ? 'p-inputtext-lg' : size === 'small' ? 'p-inputtext-sm' : ''}`
|
||||
[classList]="
|
||||
[
|
||||
inputClass,
|
||||
'w-full',
|
||||
`${size === 'large' ? 'p-inputtext-lg' : size === 'small' ? 'p-inputtext-sm' : ''}`,
|
||||
suffixTemp || preparedSuffix() ? 'hasSuffix' : '',
|
||||
].join(' ')
|
||||
"
|
||||
[required]="isRequired"
|
||||
[invalid]="control.invalid && (control.touched || control.dirty)"
|
||||
|
||||
@@ -224,9 +224,9 @@ export class InputComponent {
|
||||
// @ts-ignore
|
||||
$event.target.value = newValue;
|
||||
}
|
||||
|
||||
this.control.setValue(newValue);
|
||||
}
|
||||
if (!['nationalId', 'phone', 'postalCode', 'mobile'].includes(this.type))
|
||||
this.control.setValue(newValue);
|
||||
}
|
||||
|
||||
if (this.preparedMaxLength && this.preparedMaxLength < value.length) {
|
||||
|
||||
Reference in New Issue
Block a user