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
iOS 15 keyboard numpad accepts off numbers and cannot disable it #435
Comments
Did some investigation but unfortunately this doesn't seem to be possible due to limitations of UIDatePicker. It isn't much written about it but if anyone finds a way to solve this, please let me know. |
@henninghall hi, I fixed this issue, by handling UIControlEventEditingDidBegin event. DatePicker.m - (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
[self addTarget:self action:@selector(handleDatePickerTap) forControlEvents:UIControlEventEditingDidBegin];
// ^^^^ added this line to initWithFrame
...
- (void)handleDatePickerTap {
[self resignFirstResponder];
} |
Oh that's great! Do you mind creating a PR? |
Thanks for the PR @iGroza! Just for my understanding. Could it be reasons for keeping this feature for some use cases? (we could create a prop) or is this just broken for everyone you mean? I though that it is probably a reason for the feature to be introduced? 🤔 |
I agree to have it as a prop. Apple thinks it's a feature, while some designers / PMs think it's a bug :P |
Describe the bug
Since iOS 15 you can tap on the wheel to call the keyboard and type the time. There is no way to disable it and also you can type out of range numbers.
RPReplay_Final1639473156.MP4
Expected behavior
Need a way to disable numpad if possible, restrict typing to hour - minute range.
To Reproduce
Add example code that reproduces the behavior.
Smartphone (please complete the following information):
iOS
The text was updated successfully, but these errors were encountered: