Merge 5835657133fe2b816e8714a0a91d67f7a135ae71 into 483e944601b140cc891633048ba526037b6d3808

This commit is contained in:
Andrew Paxley 2024-10-08 17:06:17 +13:00 committed by GitHub
commit 8aa51d8b28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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