Skip to content

Commit

Permalink
Update DefaultTextPlainText.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjenkins authored Mar 8, 2021
1 parent eb037de commit 333d428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fields/DefaultTextPlainText.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function normalizeValue($value, ElementInterface $element = null)
protected function inputHtml($value, ElementInterface $element = null): string
{

$this->placeholder = $this->getRenderedValue($this->placeholder);
if ($this->placeholder !== null) {
$this->placeholder = $this->getRenderedValue($this->placeholder);
}

return Craft::$app->getView()->renderTemplate('_components/fieldtypes/PlainText/input', [
'id' => Html::id($this->handle),
Expand Down

0 comments on commit 333d428

Please sign in to comment.