Skip to content

Commit

Permalink
Fix setting default label for empty select option
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Oct 28, 2023
1 parent 6a67bc9 commit 0c5df68
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Listener/ViewSearchListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,6 @@ public function fields(): array
$input['type'] = 'select';
}

/** @psalm-suppress PossiblyUndefinedArrayOffset */
if ($input['type'] === 'select') {
$input += ['empty' => true];
}

if (!empty($input['options'])) {
$input['empty'] ??= $this->getPlaceholder($field);
if (empty($input['class']) && !$config['select2']) {
Expand Down

0 comments on commit 0c5df68

Please sign in to comment.