update error handler

This commit is contained in:
2026-04-06 18:33:17 +03:30
parent de1a046485
commit b3fb4f4baf
11 changed files with 129 additions and 24 deletions
@@ -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) {