diff --git a/FrontEnd/src/components/HeaderFooter/header/navbar/SearchBox.jsx b/FrontEnd/src/components/HeaderFooter/header/navbar/SearchBox.jsx index afb10fd55..af7c8222c 100644 --- a/FrontEnd/src/components/HeaderFooter/header/navbar/SearchBox.jsx +++ b/FrontEnd/src/components/HeaderFooter/header/navbar/SearchBox.jsx @@ -23,6 +23,11 @@ function SearchBox() { type="text" placeholder="Пошук" onChange={(e) => setSearchTerm(e.target.value)} + onKeyDown={(e) => { + if (e.key === 'Enter') { + handleSearch(searchTerm, searchPage); + } + }} />