FIX Ensure .nolabel is only added once when Hide Title is used

This commit is contained in:
jeric realubit 2022-12-07 12:05:32 +13:00 committed by Michal Kleiner
parent 704201bb34
commit c593138569
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class EditableLiteralField extends EditableFormField
parent::updateFormField($field); parent::updateFormField($field);
if ($this->HideLabel) { if ($this->HideLabel) {
$this->ExtraClass .= ' nolabel'; $field->addExtraClass('nolabel');
} else { } else {
$field->setTitle($this->Title); $field->setTitle($this->Title);
} }