Talent-Catalog / talentcatalog

https://tctalent.org
GNU Affero General Public License v3.0
13 stars 4 forks source link

Custom search dropdowns not marked as dirty #1633

Closed cazcam34 closed 3 days ago

cazcam34 commented 1 week ago

In PR #1494 I put in a change to disable the search button if there are no changes to the search fields. This relies on the searchForm.dirty value. However in our custom drop downs we patch the form value, when patchValue is used it doesn't mark the form as dirty on it's own so we need to manually add markAsDirty to the control or the form. The following fields need this fix: