Commit f167408
committed
React to
Move the check for `undefined` into the effect itself. This enables the
`initialValue` to be changed from the default (`undefined`) later and
still have the `Select` component react to that.
Note this is done only for the `Select` component as `undefined` is
not a valid value to pass to `setValue` in the core. Supporting it would
introduce complexity because a `multiple` value should always be an
Array.initialValue even if initially undefined on Select.1 parent 558545a commit f167408
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
0 commit comments