Skip to content
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

AssociationField and CountryField shortcoming #15

Open
aleksblendwerk opened this issue May 28, 2023 · 0 comments
Open

AssociationField and CountryField shortcoming #15

aleksblendwerk opened this issue May 28, 2023 · 0 comments

Comments

@aleksblendwerk
Copy link

aleksblendwerk commented May 28, 2023

Thanks for this extension to EasyAdmin, the AssociationField looks just like what I am missing right now.

Unfortunately there is a little shortcoming when the generated "Add new item" modal contains a CountryField.

It does not render a TomSelect element and in the rendered <select> field, the options are displayed like this:

<div class="country-name-flag"><img src="/bundles/easyadmin/images/flags/AF.svg" class="country-flag" loading="lazy" alt="Afghanistan"> <span>Afghanistan</span></div>, e.g. this is displayed as the name of the option instead of actually rendering that HTML.

Is there any way to display the CountryField in a better way or filter the options when the Form is rendered in a Modal?

Unfortunately the documentation is a bit lacking and right now I don't have the time for any deeper debugging.

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

No branches or pull requests

1 participant