Commit 182dd81
authored
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.1 parent 33397cc commit 182dd81
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
369 | 372 | | |
370 | 373 | | |
371 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
372 | 378 | | |
373 | 379 | | |
374 | 380 | | |
| |||
0 commit comments