SearchBar focused on query changed

This commit is contained in:
NikolaBorislavovHristov 2019-09-13 17:07:44 +03:00
parent 698f1174c7
commit d317ef04d3

View file

@ -35,7 +35,7 @@ const SearchBar = ({ className }) => {
if (active && focusable) {
searchInputRef.current.focus();
}
}, [active, focusable]);
}, [active, focusable, query]);
return (
<label className={classnames(className, styles['search-bar-container'], { 'active': active })} onClick={searchBarOnClick}>
{