Skip to content

Fix option tag synchronization #1145

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
Oct 2, 2023
Merged

Fix option tag synchronization #1145

merged 1 commit into from
Oct 2, 2023

Conversation

dsoriano
Copy link
Contributor

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

morphdom need to synchronize all option tags of a select to set the selected attribute on the good tag and then set the right selectedIndex on the parent select tag. See #960 for an illustration of the bug.

@weaverryan
Copy link
Member

THANK you for hunting this down! Do you think you could add a test for it - maybe in https://github.com/symfony/ux/blob/2.x/src/LiveComponent/assets/test/controller/render.test.ts you can set up a situation that exposes the bug?

@jcrombez
Copy link
Contributor

great job <3

@dsoriano
Copy link
Contributor Author

No problem I will add a test and in the same time fix the failed check

@dsoriano
Copy link
Contributor Author

All done ! ;)

@weaverryan
Copy link
Member

Absolutely gorgeous - thank you Denis!

@weaverryan weaverryan merged commit 8f8baf8 into symfony:2.x Oct 2, 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.

[LiveComponent] When selecting an "empty" choice, it get blanked.
3 participants