diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 4ffd2237..7783aba2 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -400,16 +400,37 @@ export class Select extends React.Component { loadOptions && loadOptions(''); } - componentWillReceiveProps(nextProps: SelectProps) { + componentDidUpdate(prevProps: SelectProps) { const props = this.props; + let fn:() => void = noop; if ( - props.value !== nextProps.value || - JSON.stringify(props.options) !== JSON.stringify(nextProps.options) + props.value !== prevProps.value || + JSON.stringify(props.options) !== JSON.stringify(prevProps.options) ) { + let selection: Array