Skip to content

LiveComponents: nested dependent fields example #944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

bendavies
Copy link
Contributor

@bendavies bendavies commented Jun 14, 2023

Q A
Bug fix? no
New feature? no
Tickets instead -->
License MIT

This PR update the LiveComponents dependant form fields example to include a 3rd dependent field which is dependent on the 2nd.

Here, we need to use FormFactoryInterface::createNamedBuilder() to get access to addEventListener(),
as that method is not available on FormInterface.

Some refactoring was done to introduce enums to make this a bit more managable.

pizza-size

@bendavies bendavies changed the title multiple dependent fields LiveComponents: multiple dependent fields example Jun 14, 2023
@bendavies bendavies changed the title LiveComponents: multiple dependent fields example LiveComponents: nested dependent fields example Jun 14, 2023
@bendavies bendavies force-pushed the multiple-dependent-fields branch from 1e5718e to eef33a1 Compare June 14, 2023 20:55
@bendavies bendavies marked this pull request as ready for review June 15, 2023 08:08
@bendavies bendavies force-pushed the multiple-dependent-fields branch from fe0680c to e28ab3b Compare June 19, 2023 14:01
@weaverryan weaverryan force-pushed the multiple-dependent-fields branch from e28ab3b to 166500d Compare June 19, 2023 14:06
@weaverryan
Copy link
Member

Thanks Ben!

@weaverryan weaverryan merged commit abb76c5 into symfony:2.x Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants