From d85e21a216e5330216b49210f4c7b99063548c54 Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 16 Mar 2022 16:18:40 +0000 Subject: [PATCH] Pass `enableVue` through to `SubField` --- src/Fields/Field.php | 5 +++++ src/Fields/SubField.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Fields/Field.php b/src/Fields/Field.php index ceb4371..034e833 100644 --- a/src/Fields/Field.php +++ b/src/Fields/Field.php @@ -93,6 +93,11 @@ public function getJavascript() return null; } + public function vueEnabled() + { + return $this->enableVue; + } + public function render($errors) { if ($this->shouldHideField()) { diff --git a/src/Fields/SubField.php b/src/Fields/SubField.php index 3bd04f7..4e08f05 100644 --- a/src/Fields/SubField.php +++ b/src/Fields/SubField.php @@ -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 *