iOSDropDown icon indicating copy to clipboard operation
iOSDropDown copied to clipboard

No selection on tap at the dropdown list items.

Open ZawarAli6 opened this issue 6 years ago • 7 comments

I have country dropdown list and i am tapping on the country is its not selecting anything in the textbox

ZawarAli6 avatar Dec 22 '19 20:12 ZawarAli6

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

ovgarcia5138e avatar Dec 22 '19 23:12 ovgarcia5138e

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

ZawarAli6 avatar Dec 23 '19 10:12 ZawarAli6

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

ovgarcia5138e avatar Dec 23 '19 14:12 ovgarcia5138e

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

ovgarcia5138e avatar Dec 23 '19 14:12 ovgarcia5138e

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

Yeah sure please share the code.

ZawarAli6 avatar Dec 24 '19 08:12 ZawarAli6

tap.cancelsTouchesInView = false

this can solve your problem func hideKeyboardWhenTappedAround() { let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard)) tap.cancelsTouchesInView = false view.addGestureRecognizer(tap) }

Pushker7 avatar Jan 28 '20 12:01 Pushker7

I have country dropdown list and i am tapping on the country is its not selecting anything in the textbox

tap.cancelsTouchesInView = false

this can solve your problem func hideKeyboardWhenTappedAround() { let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard)) tap.cancelsTouchesInView = false view.addGestureRecognizer(tap) }

Pushker7 avatar Jan 28 '20 12:01 Pushker7