laravel-form-builder
laravel-form-builder copied to clipboard
ChildForm modify method does not correctly change options
Normal Form modify method is no issue but ChildForm modify method is no correctly.
$parentForm->modify(
'child_field_key',
'text',
array_merge($child->getOptions(), ['attr' => ['disabled' => 'disabled'])
);
avobe disabled
option is not reflected
$child->setOptions('attr', ['disabled' => 'disabled'])
above 'disabled' option it will work
yes same probleme for me! modify method does not correctly change options on child form
@kristijanhusak @mikeerickson I don't use modify()
. You?