Skip to content

Commit

Permalink
Search: Trigger search when no keyword change, but site change
Browse files Browse the repository at this point in the history
Fixes #453. When site was switched, component detected no change so
Did not do search again.
  • Loading branch information
artpi committed Dec 1, 2015
1 parent aa6e692 commit ebde25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/search/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = React.createClass( {
this.focus();
}

if ( this.state.keyword === prevState.keyword ) {
if ( this.state.keyword === prevState.keyword && prevProps.initialValue === this.props.initialValue ) {
return;
}
// if there's a keyword change: trigger search
Expand Down

0 comments on commit ebde25b

Please sign in to comment.