Skip to content

This is a suggestion FIX #77

Description

@mirko-console-dir

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);
//}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions