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)"