|
@@ -132,7 +132,9 @@ export default class Selector extends Component<PropsType, StateType> {
|
|
|
<MainSelector
|
|
<MainSelector
|
|
|
ref={this.parentRef}
|
|
ref={this.parentRef}
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
- this.props.refreshOptions();
|
|
|
|
|
|
|
+ if (this.props.refreshOptions) {
|
|
|
|
|
+ this.props.refreshOptions();
|
|
|
|
|
+ }
|
|
|
this.setState({ expanded: !this.state.expanded });
|
|
this.setState({ expanded: !this.state.expanded });
|
|
|
}}
|
|
}}
|
|
|
expanded={this.state.expanded}
|
|
expanded={this.state.expanded}
|