From ab2521b88004d6c34dc957a9020dcf45fbb76018 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Wed, 10 Feb 2021 12:34:44 -0500 Subject: [PATCH] Fixed issue with search icon in the search bar submitting the search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Fixed: - issue with search icon in the search bar submitting the search --- app/javascript/gabsocial/components/search.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/gabsocial/components/search.js b/app/javascript/gabsocial/components/search.js index b024fbd8..46d2214f 100644 --- a/app/javascript/gabsocial/components/search.js +++ b/app/javascript/gabsocial/components/search.js @@ -70,6 +70,8 @@ class Search extends React.PureComponent { handleSubmit = () => { this.props.onSubmit() + this.context.router.history.push(`/search?q=${this.props.value}`) + } render() {