Skip to content

Commit 72b63ed

Browse files
committed
Target :input, not .input, in label macros
From the docs: "Selects all input, textarea, select and button elements"
1 parent fe9d5a0 commit 72b63ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/class-fieldmanager-group.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function get_element_label( $classes = array() ) {
371371
$extra_attrs = '';
372372
if ( $this->label_macro ) {
373373
$this->label_format = $this->label_macro[0];
374-
$this->label_token = sprintf( '.fm-%s input.fm-element', $this->label_macro[1] );
374+
$this->label_token = sprintf( '.fm-%s .fm-element:input', $this->label_macro[1] );
375375
}
376376

377377
if ( $this->label_format && $this->label_token ) {

0 commit comments

Comments
 (0)