Skip to content

Commit

Permalink
Merge pull request #645 from wikimedia/required-search-field
Browse files Browse the repository at this point in the history
Make main search field required
  • Loading branch information
cimurah authored Sep 23, 2022
2 parents 8d85f95 + 6fe398c commit 731718c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function index(Intuition $intuition, Session $session):Response
'id' => 'search-widget',
'infusable' => true,
'value' => $failedSearchTerm[0] ?? '',
'required' => true,
]);
$button = new Tag( 'button' );
$button->setAttributes(['type' => 'submit']);
Expand Down

0 comments on commit 731718c

Please sign in to comment.