Skip to content

Commit

Permalink
Pass enableVue through to SubField
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvalue committed Mar 16, 2022
1 parent 35cd1fb commit d85e21a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ public function getJavascript()
return null;
}

public function vueEnabled()
{
return $this->enableVue;
}

public function render($errors)
{
if ($this->shouldHideField()) {
Expand Down
5 changes: 5 additions & 0 deletions src/Fields/SubField.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public function __construct($identifier, Field $field)
$field->name = $this->getFieldNameInBracketSyntax();
}

public function vueEnabled()
{
return $this->decorate->vueEnabled();
}

/**
* Render the decorated field's input output
*
Expand Down

0 comments on commit d85e21a

Please sign in to comment.