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

onSpinnerItemSelectedListener not properly listening on events #152

Open
RandomLonelyDev opened this issue Mar 20, 2023 · 1 comment
Open

Comments

@RandomLonelyDev
Copy link

Please complete the following information:

  • Library Version 1.2.4
  • Affected Device(s) Google Pixel 6 API 28

Describe the Bug:

Selecting a spinner item in the UI does not trigger the expected onItemSelectedListener callback. However, the correct item shows up in the UI and the dropdown closes

Expected Behavior:

the call back is just supposed to log the lambda parameters as a test, but the log is empty.
the listener declaration is this:

binding!!.spinner.setOnSpinnerItemSelectedListener { one: Int, two: String?, three: Int, four: String? -> println("$one, $two, $three, $four") }

Where binding is the fragment binding, spinner is the PowerSpinnerView object, and the block is the callback.

@gifandadelasty
Copy link

Hi, I'm facing the same case here..

any solutions?

thanks in advanced

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

2 participants