Skip to content

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Apr 3, 2025

If you set the multiple attribute after the node is mounted, it will keep the selected value from the drop down version of the attribute. We run into that issue if multiple is a dynamic value instead of a static value which is set before it is mounted in the template. This PR fixes that issue by resetting the values when the multiple attribute is changed

Fixes #3185

@ealmloff ealmloff added the bug Something isn't working label Apr 3, 2025
@ealmloff ealmloff marked this pull request as ready for review April 4, 2025 13:56
@ealmloff ealmloff requested a review from a team as a code owner April 4, 2025 13:56
@jkelleyrtp jkelleyrtp merged commit 5e9a505 into DioxusLabs:main Apr 8, 2025
29 of 30 checks passed
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jun 2, 2025
* Fix select multiple default value

* Add a playwright test for select multiple
AnteDeliria pushed a commit to AnteDeliria/dioxus that referenced this pull request Jul 23, 2025
* Fix select multiple default value

* Add a playwright test for select multiple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour in multiple select
2 participants