Skip to content

Commit

Permalink
Update Search.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini authored Jul 20, 2022
1 parent e8fc129 commit 775a135
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/theme/Search/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ class Search extends Component {
if (
JSON.stringify(this.props.search) !== JSON.stringify(nextProps.search)
) {
//all'apertura della pagina dei risultati di ricerca, sposto il focus sui risultati
//on opening results page, move focus on results
this.focusResults();
}
};

focusResults = () => {
//all'apertura della pagina dei risultati di ricerca, sposto il focus sui risultati
//on opening results page, move focus on results
setTimeout(function () {
if (document.querySelector('#page-search #search-results')) {
document.querySelector('#page-search #search-results').focus();
Expand Down

0 comments on commit 775a135

Please sign in to comment.