Skip to content

fix: Selected index not updating when items change #391

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

refi64
Copy link

@refi64 refi64 commented Jul 18, 2025

If the valueListenable is set separately from the items changing, the selected item wouldn't change, which can cause issues if they're e.g. loaded in separately.

Fixes: #392

@AhmedLSayed9
Copy link
Owner

Do you have a reproducible sample for it?
It'd be helpful if you can open an issue with a minimal reproducible sample and link this PR to it.

If the valueListenable is set *separately* from the items changing, the
selected item wouldn't change, which can cause issues if they're e.g.
loaded in separately.

Fixes: AhmedLSayed9#392
@refi64
Copy link
Author

refi64 commented Jul 21, 2025

@AhmedLSayed9 done #392

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.

Widget doesn't update when items change after valueListenable
2 participants