MD.OFFICE
FAL

2026-03-30

  • Refined Autocomplete Widget Validation:
    • Fixed a persistent issue where Angular's form validation lifecycle would overwrite custom duplicate error states.
    • Switched from imperative setErrors calls to a reactive, dynamic synchronous validator (registerDuplicateValidator).
    • Decoupled visual state from the underlying form control using a tempValue property. This allows invalid or duplicate text to remain visible for editing while the form model remains null or valid.
    • Hardened the onBlur behavior 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.