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

This is a suggestion FIX #77

Open
mirko-console-dir opened this issue Sep 28, 2024 · 0 comments
Open

This is a suggestion FIX #77

mirko-console-dir opened this issue Sep 28, 2024 · 0 comments

Comments

@mirko-console-dir
Copy link

mirko-console-dir commented Sep 28, 2024

When the picker returns to the selected element at index 0, the onChange function is not triggered.
My suggestion is to remove the conditional check and trigger onChange for any change.

The fix needs to be applied in the WheelPicker.js file at line 56:
if (last > itemHeight / 2)
index++;
// if (index !== selectedIndex) {
onChange(index);
//}

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

No branches or pull requests

1 participant