Open FabzAllotools opened 1 month ago
same issue here.
A really hacky workaround is:
->setHtmlAttributes(['data-controller=foo data-foo-mycustom-value=myCustomValue data-ignore' => ''])
That will result in the first two attributes being added correctly, and the data-ignore
is just for dealing with the set value.
<div data-controller="foo" data-foo-mycustom-value="myCustomValue" data-ignore></div>
I need to get 2 HTML attributs on a form tab by using setHtmlAttributes on FormField::addTab. Instead of getting 2 attributs I get only one containing as value all the rest of the array.
ex : ->setHtmlAttributes(['data-foo' => 'bar', 'autofocus' => 'autofocus']) should get <... data-foo=bar autofocus=autofocus> but I get <... data-foo="barautofocus=autofocus" instead>