We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483e944 commit 5835657Copy full SHA for 5835657
src/Forms/SearchableDropdownTrait.php
@@ -139,7 +139,6 @@ public function getPlaceholder(): string
139
return $emptyString;
140
}
141
142
- $name = $this->getName();
143
if ($this->getUseDynamicPlaceholder()) {
144
if ($this->getIsSearchable()) {
145
if (!$this->getIsLazyLoaded()) {
@@ -598,6 +597,9 @@ public function performReadonlyTransformation()
598
597
$field->setSource($this->sourceList);
599
$field->setReadonly(true);
600
+ // Remove the text "Type to search..." on a read-only field
601
+ $this->setUseDynamicPlaceholder(false);
602
+
603
return $field;
604
605
0 commit comments