Skip to content

Commit 2215f1b

Browse files
committed
1 parent ca2ad9f commit 2215f1b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Form/Field/Tags.php

+4
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ public function value($value = null)
168168
*/
169169
public function render()
170170
{
171+
if (!$this->shouldRender()) {
172+
return '';
173+
}
174+
171175
$this->setupScript();
172176

173177
if ($this->keyAsValue) {

src/Form/Field/Textarea.php

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public function rows($rows = 5)
3232
*/
3333
public function render()
3434
{
35+
if (!$this->shouldRender()) {
36+
return '';
37+
}
38+
3539
if (is_array($this->value)) {
3640
$this->value = json_encode($this->value, JSON_PRETTY_PRINT);
3741
}

0 commit comments

Comments
 (0)