Compare commits

..

2 Commits

2 changed files with 1 additions and 3 deletions

View File

@ -598,7 +598,7 @@ trait SearchableDropdownTrait
$field->setReadonly(true);
// Remove the text "Type to search..." on a read-only field
// $field->setPlaceholder('');
$this->setUseDynamicPlaceholder(false);
return $field;
}

View File

@ -73,8 +73,6 @@ class SearchableDropdownTraitTest extends SapphireTest
$this->assertSame('My empty string', $field->getPlaceholder());
$field->setPlaceholder('My placeholder');
$this->assertSame('My placeholder', $field->getPlaceholder());
$readonlyField = $field->performReadonlyTransformation();
$this->assertSame('', $readonlyField->getPlaceholder());
}
public function testSeachContext(): void