From a5e107762f8bfd00408c46bb5f0fa680120b8e73 Mon Sep 17 00:00:00 2001 From: Brian DiChiara Date: Fri, 24 Jan 2025 09:11:26 -0600 Subject: [PATCH] Remove JSX attr references --- classes/Elements/Input.php | 2 -- classes/Elements/Label.php | 1 - classes/Elements/Legend.php | 1 - 3 files changed, 4 deletions(-) diff --git a/classes/Elements/Input.php b/classes/Elements/Input.php index 2896f99..12b2242 100644 --- a/classes/Elements/Input.php +++ b/classes/Elements/Input.php @@ -76,8 +76,6 @@ public function get_template(): array { public function get_attrs(): array { $attrs = parent::get_attrs(); - $attrs['data-supports-jsx'] = null; - $attrs['type'] = $this->get_input_type(); $attrs['value'] = $this->get_value_attr(); diff --git a/classes/Elements/Label.php b/classes/Elements/Label.php index 3f4dbf0..56e5c8e 100644 --- a/classes/Elements/Label.php +++ b/classes/Elements/Label.php @@ -24,7 +24,6 @@ public function get_attrs(): array { $attrs = parent::get_attrs(); unset( $attrs['name'] ); - $attrs['data-supports-jsx'] = null; $parent = $this->get_parent_field(); if ( $parent && ! is_admin() ) { diff --git a/classes/Elements/Legend.php b/classes/Elements/Legend.php index 7d7d8b4..5d3414d 100644 --- a/classes/Elements/Legend.php +++ b/classes/Elements/Legend.php @@ -24,7 +24,6 @@ public function get_attrs(): array { $attrs = parent::get_attrs(); unset( $attrs['name'] ); - $attrs['data-supports-jsx'] = null; return $attrs; }