Skip to content

Commit

Permalink
Merge pull request #2526 from terranc/patch-1
Browse files Browse the repository at this point in the history
Filter selector support clear selected option
  • Loading branch information
z-song committed Sep 19, 2018
2 parents 788173a + 26c25f1 commit dba6747
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 dba6747

Please sign in to comment.