laravel-form-builder icon indicating copy to clipboard operation
laravel-form-builder copied to clipboard

ChildForm modify method does not correctly change options

Open eretica opened this issue 6 years ago • 2 comments

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

eretica avatar Feb 04 '19 11:02 eretica

yes same probleme for me! modify method does not correctly change options on child form

rom1vtle avatar Jun 28 '19 08:06 rom1vtle

@kristijanhusak @mikeerickson I don't use modify(). You?

rudiedirkx avatar Jul 04 '19 16:07 rudiedirkx