Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(form): multiple selects return arrays for dirtycheck
The fieldDirty check failed whenever a dropdown, converted from a select tag, was part of the form and was defined as multiple The comparison of currentValue and initialValue failed for those dropdowns, because the .val() method returned arrays instead of strings for select-multiple fields. Dropdowns made out of div were working, because those use an input field, which holds a string. Raw == comparisons of two arrays are never true, so that fiel was always considered dirty.
- Loading branch information