Skip to content

Commit

Permalink
SimpleSuggestions: Remove default suggestion's manually added quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Oct 13, 2022
1 parent 0de3900 commit 29239d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Control/SimpleSuggestions.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function setData($data): self
*/
public function setDefault(string $default): self
{
$this->default = $default;
$this->default = trim($default, '"\'');

return $this;
}
Expand Down Expand Up @@ -176,7 +176,7 @@ public function forRequest(ServerRequestInterface $request): self

$this->setData($this->fetchSuggestions($label, $exclude));

if ($search) {
if (! empty($search)) {
$this->setDefault($search);
}

Expand Down

0 comments on commit 29239d0

Please sign in to comment.