Skip to content

Commit 824b2a5

Browse files
committed
Fix select2 placeholder default id value
1 parent 5555c30 commit 824b2a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Html/Editor/Fields/Select2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ public function allowClear(bool $state = true): static
1919
}
2020

2121
/**
22-
* @param string $value
22+
* @param string $text
2323
* @param string $id
2424
* @return $this
2525
*/
26-
public function optsPlaceholder(string $value = '', string $id = 'id'): static
26+
public function optsPlaceholder(string $text = '', string $id = ''): static
2727
{
2828
return $this->opts([
2929
'placeholder' => [
3030
'id' => $id,
31-
'text' => $value,
31+
'text' => $text,
3232
],
3333
]);
3434
}

0 commit comments

Comments
 (0)