Skip to content

Commit 29239d0

Browse files
SimpleSuggestions: Remove default suggestion's manually added quotes
1 parent 0de3900 commit 29239d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Control/SimpleSuggestions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function setData($data): self
7070
*/
7171
public function setDefault(string $default): self
7272
{
73-
$this->default = $default;
73+
$this->default = trim($default, '"\'');
7474

7575
return $this;
7676
}
@@ -176,7 +176,7 @@ public function forRequest(ServerRequestInterface $request): self
176176

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

179-
if ($search) {
179+
if (! empty($search)) {
180180
$this->setDefault($search);
181181
}
182182

0 commit comments

Comments
 (0)