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) { if (active && focusable) {
searchInputRef.current.focus(); searchInputRef.current.focus();
} }
}, [active, focusable]); }, [active, focusable, query]);
return ( return (
<label className={classnames(className, styles['search-bar-container'], { 'active': active })} onClick={searchBarOnClick}> <label className={classnames(className, styles['search-bar-container'], { 'active': active })} onClick={searchBarOnClick}>
{ {