diff --git a/src/Field.php b/src/Field.php index 4677ec9..d852517 100644 --- a/src/Field.php +++ b/src/Field.php @@ -486,7 +486,11 @@ protected function inputHtml(mixed $value, ElementInterface $element = null): st */ public function getStaticHtml(mixed $value, ElementInterface $element): string { - return Html::tag('div', $this->prepValueForInput($value, $element) ?: ' '); + return Html::tag( + 'div', + $this->prepValueForInput($value, $element) ?: ' ', + ['class' => 'noteditable'] + ); } /**