Skip to content

Commit

Permalink
Make main search field required
Browse files Browse the repository at this point in the history
Otherwise, clicking Translate just ends up back at the form with
no indication why nothing happened.
  • Loading branch information
samwilson committed Sep 23, 2022
1 parent 8d85f95 commit 6fe398c
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 6fe398c

Please sign in to comment.