Fix source bug
parent
44590d501b
commit
3fb0fa4235
|
@ -1,5 +1,5 @@
|
|||
// Simple Dropdown/Autocomplete with single/multiple selection and easy customisation via CSS modules
|
||||
// Version 2019-09-03
|
||||
// Version 2019-09-15
|
||||
// License: LGPLv3.0+
|
||||
// (c) Vitaliy Filippov 2019+
|
||||
|
||||
|
@ -317,7 +317,8 @@ export default class Selectbox extends React.PureComponent
|
|||
this.item_hash = this.props.source;
|
||||
}
|
||||
}
|
||||
if (!this.prevProps || this.props.suggestionMatch != this.prevProps.suggestionMatch ||
|
||||
if (!this.prevProps || this.props.source != this.prevProps.source ||
|
||||
this.props.suggestionMatch != this.prevProps.suggestionMatch ||
|
||||
this.state.query != this.prevState.query)
|
||||
{
|
||||
if (!this.props.suggestionMatch || this.props.suggestionMatch == 'disabled' || !this.state.query)
|
||||
|
|
Loading…
Reference in New Issue