-
Notifications
You must be signed in to change notification settings - Fork 294
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
Weird value changes when selecting multiple items. #737
Comments
I've run into this issue as well. When logging, I've found that it is because the state transition is not working correctly. For example: value -> newValue Expected final state is an empty array, but since the state is not updated the final state looks detached from the actions taken to get there, therefore the "weird" value changes. This is how I've solved it in my code, using a RHF controller.
Note that setValue doesn't do anything but log currently. |
@HugPet @mersiades |
I have also experienced same issue in multiple select |
I don't think I have authority to do that. |
Hard to describe in words, but here's a video:
selecting-from-menu.mov
Looks like something is wrong with how the value state is being updated. I kept the video short, but the more I select the wilder it gets.
Minimum reproducible example is here: https://github.com/mersiades/rn-dropdown-picker-mre
I'm a bit surprised that no one else has raised this issue, which makes me suspect it's me that's doing something wrong, but if so, I've got no idea what it is.
The text was updated successfully, but these errors were encountered: