diff --git a/src/StringTagField.php b/src/StringTagField.php index 81abe03..b994b19 100644 --- a/src/StringTagField.php +++ b/src/StringTagField.php @@ -197,19 +197,6 @@ protected function formatOptions($fieldValue) return $formattedValue; } - /** - * When not used in a React form factory context, this adds the schema data to SilverStripe template - * rendered attributes lists - * - * @return array - */ - public function getAttributes() - { - $attributes = parent::getAttributes(); - $attributes['data-schema'] = json_encode($this->getSchemaData()); - return $attributes; - } - /** * @return string */ diff --git a/src/TagField.php b/src/TagField.php index 317635c..10fb9be 100644 --- a/src/TagField.php +++ b/src/TagField.php @@ -381,7 +381,6 @@ public function getAttributes() [ 'name' => $name, 'style' => 'width: 100%', - 'data-schema' => json_encode($this->getSchemaData()), ] ); } diff --git a/templates/SilverStripe/TagField/TagField.ss b/templates/SilverStripe/TagField/TagField.ss index 01f51a5..f315c9f 100644 --- a/templates/SilverStripe/TagField/TagField.ss +++ b/templates/SilverStripe/TagField/TagField.ss @@ -1 +1 @@ -
+