You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments