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
The props should not be modified by the component and should only be used as they are provided by the parent. Updates should only come from events, which are then handled by the parent. In the case of value, the proper way to update it would be to make a copy, update the copy and send it back to the parent via the input event.
Actual behavior
When an option is selected, this.value is updated. This interferes with parent logic by updating one of its variables. From the source code:
Version & browser
Version 0.31.5, all browsers
Which component
MultiSelect
Expected behavior
The props should not be modified by the component and should only be used as they are provided by the parent. Updates should only come from events, which are then handled by the parent. In the case of value, the proper way to update it would be to make a copy, update the copy and send it back to the parent via the input event.
Actual behavior
When an option is selected, this.value is updated. This interferes with parent logic by updating one of its variables. From the source code:
The text was updated successfully, but these errors were encountered: