Skip to content

Commit

Permalink
Fix JsBlock refactor (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrecek234 committed Mar 7, 2023
1 parent bbf61d2 commit c6b9ed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Table/Column/FilterPopup.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Atk4\Ui\Button;
use Atk4\Ui\Form;
use Atk4\Ui\Js\Jquery;
use Atk4\Ui\Js\JsBlock;
use Atk4\Ui\Js\JsReload;
use Atk4\Ui\Popup;
use Atk4\Ui\View;
Expand Down Expand Up @@ -73,11 +74,11 @@ protected function init(): void
->on('click', function (Jquery $j) use ($model) {
$model->clearData();

return [
return new JsBlock([
$this->form->js(false, null, $this->form->formElement)->form('reset'),
new JsReload($this->reload),
(new Jquery($this->colTrigger))->trigger('click'),
];
]);
});
}

Expand Down

0 comments on commit c6b9ed7

Please sign in to comment.