Skip to content

[Autocomplete] Fix extending Tom Select when using custom Ajax class #447

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
Sep 16, 2022
Merged

[Autocomplete] Fix extending Tom Select when using custom Ajax class #447

merged 1 commit into from
Sep 16, 2022

Conversation

ralfkuehnel
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
Tickets Fix #...
License MIT

I have tried to follow the documentation to extend Tom Select using a custom Stimulus controller. It worked when updating the field configuration but did not when using a custom Ajax class. In this case the core Autocomplete Stimulus controller was missing in the rendered data-controller-Tag. Changing the autocomplete form theme to use the attributes from the autocomplete field seems to fix this!

@ralfkuehnel ralfkuehnel changed the title [Autocomplete] Fix extending Tom Select when using custom ajax class [Autocomplete] Fix extending Tom Select when using custom Ajax class Sep 1, 2022
@weaverryan
Copy link
Member

Thank you Ralf! Very nice test addition also :)

@weaverryan weaverryan merged commit 5a13c71 into symfony:2.x Sep 16, 2022
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