2026-03-30
- Refined Autocomplete Widget Validation:
- Fixed a persistent issue where Angular's form validation lifecycle would overwrite custom
duplicateerror states. - Switched from imperative
setErrorscalls to a reactive, dynamic synchronous validator (registerDuplicateValidator). - Decoupled visual state from the underlying form control using a
tempValueproperty. This allows invalid or duplicate text to remain visible for editing while the form model remainsnullor valid. - Hardened the
onBlurbehavior to trigger a fresh, exact-match API request. This ensures that manually typed values (free-text) are validated correctly against the latest server state, even if they weren't part of the last debounced suggestion list. - Verified all changes against the existing Jest test suite for the component.
- Fixed a persistent issue where Angular's form validation lifecycle would overwrite custom