Closed edwards-sj closed 6 years ago
The setActivePlaceholder method introduced with 2.0.14 is inconsistent with the activeLabel method with regards to attribute names.
setActivePlaceholder
activeLabel
<?= Html::activeTextInput($model, '[0]attribute', ['placeholder' => true]) ?>
The placeholder should be the same as the label.
Placeholder is the attribute name, [0]attribute
[0]attribute
activeLabel uses the static method getAttributeName as the input to getAttributeLabel
getAttributeName
getAttributeLabel
setActivePlaceholder just passes the attribute name unfiltered.
Thank you. Would you like to create a PR to fix this issue?
The
setActivePlaceholder
method introduced with 2.0.14 is inconsistent with theactiveLabel
method with regards to attribute names.What steps will reproduce the problem?
<?= Html::activeTextInput($model, '[0]attribute', ['placeholder' => true]) ?>
What is the expected result?
The placeholder should be the same as the label.
What do you get instead?
Placeholder is the attribute name,
[0]attribute
Additional info
activeLabel
uses the static methodgetAttributeName
as the input togetAttributeLabel
setActivePlaceholder
just passes the attribute name unfiltered.