Closed Daedren closed 3 years ago
Hi @Daedren have you found a solution for this? I got same issue.
In library, we are adding the toolbar with standard way which is to set inputAccessoryView of the textField. If you have set the inputView = pickerView then the problem shouldn't be there. Can you please share the demo project to reproduce the issue?
I am also facing the same issue. Let me share the demo project for it.
I have figured out. This issue is only when using the simulator. It does not occur in the real device. And it has nothing to do with IQKeyboardmanager. It exist in the simulator even if we just tap outside the picker.
Describe the bug If a UITextField has an UIPickerView as its input view, tapping the IQKeyboardManager's toolbar triggers the pickerview to scroll.
This makes it so that when you press "Done" to close the keyboard, the pickerview will still scroll when off-screen.
I have tried both with and without
translatesAutoresizingMaskIntoConstraints
enabled.To Reproduce Steps to reproduce the behavior:
Expected behavior The UIPickerView shouldn't scroll when it's not clearly tapped. Furthermore it causes issues when manually closing the keyboard.
Versions
Xcode: 11.3.1 Mac OS: 10.15.2 Simulator/Device: iOS 13.3 (17C45) Simulator/Device Name: iPhone 11 Pro Library Version: Tried on both 6.2.0 and 6.5.5