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
ComboBox updates the following state in componentWillReceiveProps:
selectedIndices is reset if props.selectedKeys changes. This can also be set elsewhere in the class (incorrect semi-controlled pattern).
currentOptions is reset if props.options changes. This can also be set elsewhere in the class if the user types new options.
suggestedDisplayValue is cleared if props.selectedKey is newly null, but can be reset elsewhere in the class
It's likely that this would be easier to fix in-place rather than doing a function component conversion due to the overall complexity of the component.
The text was updated successfully, but these errors were encountered:
ComboBox updates the following state in
componentWillReceiveProps
:selectedIndices
is reset ifprops.selectedKeys
changes. This can also be set elsewhere in the class (incorrect semi-controlled pattern).currentOptions
is reset ifprops.options
changes. This can also be set elsewhere in the class if the user types new options.suggestedDisplayValue
is cleared ifprops.selectedKey
is newly null, but can be reset elsewhere in the classIt's likely that this would be easier to fix in-place rather than doing a function component conversion due to the overall complexity of the component.
The text was updated successfully, but these errors were encountered: