Skip to content

Commit

Permalink
fix: set filter button priority to be rendered below select filters (#…
Browse files Browse the repository at this point in the history
…339)

* fix: Ensure filter button is rendered at the end of the filter form.

* fix: Ensure filter button is rendered at the end of the filter form.
  • Loading branch information
fibble committed Sep 19, 2024
1 parent bdd53bf commit 6b62805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/internal/module/Olcs/src/Listener/HeaderSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function onDispatch(MvcEvent $e)
$fs = $this->getFormElementManager()
->get(SearchOrderFieldset::class, ['index' => $index, 'name' => 'sort']);
$searchFilterForm->add($fs);

if ($searchFilterForm->has('submit')) {
$searchFilterForm->setPriority('submit', -1);
}
}

$container = new Container(SearchController::CONTAINER);
Expand Down

0 comments on commit 6b62805

Please sign in to comment.