Compare commits

...

2 Commits

Author SHA1 Message Date
Andrew Paxley
8aa51d8b28
Merge 5835657133 into 483e944601 2024-10-08 17:06:17 +13:00
Andrew Paxley
5835657133 FIX remove placeholder search text on readonly field 2024-10-08 17:04:07 +13:00

View File

@ -139,7 +139,6 @@ trait SearchableDropdownTrait
return $emptyString;
}
}
$name = $this->getName();
if ($this->getUseDynamicPlaceholder()) {
if ($this->getIsSearchable()) {
if (!$this->getIsLazyLoaded()) {
@ -598,6 +597,9 @@ trait SearchableDropdownTrait
$field->setSource($this->sourceList);
$field->setReadonly(true);
// Remove the text "Type to search..." on a read-only field
$this->setUseDynamicPlaceholder(false);
return $field;
}
}