Web: Components: ComboBox: Fixed render conditions
This commit is contained in:
parent
367c89b34e
commit
69b1c39ac5
@ -67,9 +67,9 @@ class ComboBox extends React.Component {
|
|||||||
this.props.onSelect && this.props.onSelect(option);
|
this.props.onSelect && this.props.onSelect(option);
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps) {
|
||||||
if (this.props.opened !== prevProps.opened && this.state.isOpen !== prevState.isOpen) {
|
if (this.props.opened !== prevProps.opened) {
|
||||||
this.setIsOpen(this.state.isOpen);
|
this.setIsOpen(this.props.opened);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.selectedOption !== prevProps.selectedOption) {
|
if (this.props.selectedOption !== prevProps.selectedOption) {
|
||||||
|
Loading…
Reference in New Issue
Block a user