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

Autocomplete attr support #8083

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

pietaj
Copy link
Contributor

@pietaj pietaj commented Jul 6, 2023

Subject

I am targeting this branch, because Sonata 4 does not support the attr option in ModelAutocompleteType

Sonata3 ModelAutocompleteType rendered the passed attr options into the autocomplete template allowing for custom data attributes etc. This was removed here: 8f4d466 which I think was simply overlooked

Moreover Select2 v4 no longer supports readonly, see: https://github.com/select2/select2/blob/4.0.13/CHANGELOG.md

Changelog

### Added
- Autocomplete attr support for select2

@VincentLanglet
Copy link
Member

Hi @pietaj, can you fix the Documentation build ?

@VincentLanglet
Copy link
Member

Hi @pietaj, can you fix the Documentation build ?

Friendly ping @pietaj :)

@pietaj
Copy link
Contributor Author

pietaj commented Sep 1, 2023

@phansys thx for the cosmetic review, I've pushed an update to that. Anyway, I see that the tests fail on phpstan. Should I do sth about it in the scope of this PR?

@VincentLanglet
Copy link
Member

@phansys thx for the cosmetic review, I've pushed an update to that. Anyway, I see that the tests fail on phpstan. Should I do sth about it in the scope of this PR?

Not needed in this PR I would say, but if you want to fix it in other PR this would be awesome

@VincentLanglet VincentLanglet merged commit d6bbd49 into sonata-project:4.x Sep 7, 2023
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants