mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX remove placeholder search text on readonly field
This commit is contained in:
parent
483e944601
commit
5835657133
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user