Better class addition which preserve previously assigned classes#29
Better class addition which preserve previously assigned classes#29Vlczech wants to merge 1 commit intouestla:masterfrom
Conversation
|
This doesn't work since it does the same thing as the native
|
|
That's strange... If i added some class to input and use yours When I have a moment, i will try once again. |
|
Yes that's correct, but in this pull request you're using |
|
Sorry, that was a mistake, that i wrote another function thatn in pull request. I used |
6b17985 to
97f4193
Compare
c4333ec to
003cc91
Compare
If I use some classes on inputs, usage of:
{input some-input, class => 'some-class'}leads to overwrite previously set classes.
However:
$form['some-input']->getControlPrototype()->addAttributes(['class' => 'some-class'])leads to merge previously set classes with the other one classes.