mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 15:57:01 +02:00
Update InputfieldWrapper for Inputfield::skipLabelFor property to fix processwire/processwire-issues#1982
This commit is contained in:
@@ -898,7 +898,7 @@ class InputfieldWrapper extends Inputfield implements \Countable, \IteratorAggre
|
|||||||
} else {
|
} else {
|
||||||
// label always visible
|
// label always visible
|
||||||
$label = str_replace('{out}', $icon . $label . $toggle, $markup['item_label']);
|
$label = str_replace('{out}', $icon . $label . $toggle, $markup['item_label']);
|
||||||
$label = $this->setAttributeInMarkup('for', $for, $label, true);
|
if($skipLabel !== Inputfield::skipLabelFor) $label = $this->setAttributeInMarkup('for', $for, $label, true);
|
||||||
}
|
}
|
||||||
$headerClass = trim($inputfield->getSetting('headerClass') . " $classes[item_label]");
|
$headerClass = trim($inputfield->getSetting('headerClass') . " $classes[item_label]");
|
||||||
$label = $this->setAttributeInMarkup('class', $headerClass, $label);
|
$label = $this->setAttributeInMarkup('class', $headerClass, $label);
|
||||||
|
Reference in New Issue
Block a user