From 3fb0fa4235caedef8bb440a2c2c52ad8eea59b95 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 15 Sep 2019 14:43:57 +0300 Subject: [PATCH] Fix source bug --- Selectbox.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Selectbox.js b/Selectbox.js index 9b907a6..66bb119 100644 --- a/Selectbox.js +++ b/Selectbox.js @@ -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)