We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b8c38c + 09cef26 commit b840167Copy full SHA for b840167
components/SearchBar/SearchBar.jsx
@@ -41,6 +41,13 @@ class SearchBar extends Component {
41
window.removeEventListener('click', this.handleOutsideClick)
42
}
43
44
+ componentWillReceiveProps(nextProps,nextState) {
45
+ const searchVal = this.getQueryStringValue(nextProps.searchTermKey)
46
+ if (searchVal !== this.state.searchValue) {
47
+ this.setState({ searchState: 'filled', searchValue: searchVal })
48
+ }
49
50
+
51
handleOutsideClick(evt) {
52
let t = evt.target
53
let i = 0
0 commit comments