Describe the bug
I stumbled on some strange side effects, apparently the array that is passed in to initialValue is modified in a multiselect if you check in other values than the one you passed in to initialValue
To Reproduce
Create a multi-select prompt
Create an appropriate array with e.g. 3 values to use as options.
Create another array with 2 of the same values and use as initialValue.
Select the third value in the prompt.
The initialValue array will be modified.
Expected behavior
The array should not be mutated.
Environment
Describe the bug I stumbled on some strange side effects, apparently the array that is passed in to
initialValue
is modified in amultiselect
if you check in other values than the one you passed in toinitialValue
To Reproduce
initialValue
.Expected behavior The array should not be mutated.