In my formType I've got my field :
->add('cultureParticipation', CheckboxType::class, [
'label' => 'culture_participation',
'block_prefix' => 'inline_switch',
'required' => false,
'row_attr' => [
'class' => 'hide-person',
],
])
In my css, I put a display: none to all .hide-person but all my field appear without the class hide-person. Now if I comment bloc_prefix, it works !
I don't understand why the block_prefix interfer with row_attr.
It doesn't work only if the field is CheckboxType for any other field all is ok.
Any idea ?