Skip to content

Commit

Permalink
Remove JSX attr references
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget committed Jan 24, 2025
1 parent 38f1a39 commit a5e1077
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions classes/Elements/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 0 additions & 1 deletion classes/Elements/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {
Expand Down
1 change: 0 additions & 1 deletion classes/Elements/Legend.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ public function get_attrs(): array {
$attrs = parent::get_attrs();

unset( $attrs['name'] );
$attrs['data-supports-jsx'] = null;

return $attrs;
}
Expand Down

0 comments on commit a5e1077

Please sign in to comment.