Skip to content

Commit

Permalink
Filter selector support clear selected option
Browse files Browse the repository at this point in the history
  • Loading branch information
terranc committed Sep 19, 2018
1 parent 788173a commit 26c25f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Grid/Filter/Presenter/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ protected function buildOptions() : array

$this->script = <<<SCRIPT
$(".{$this->getElementClass()}").select2({
placeholder: "$placeholder"
placeholder: "$placeholder",
allowClear: true
});
SCRIPT;
Expand Down

0 comments on commit 26c25f1

Please sign in to comment.