FlagPhoneNumber
FlagPhoneNumber copied to clipboard
Phone number field almost impossible to select after changing country
Describe the bug After changing the country flag/code it is super difficult to select the phone number
To Reproduce Steps to reproduce the behavior:
- Go to flag/country picker
- Click on pick any country
- Try to select phone number
- Try tapping on phone number placeholder until it finally opens up a numberpad keyboard
Expected behavior User should be able to easily tap the field and edit
Smartphone (please complete the following information):
- Device: Any iPhone
- OS: iOS 12, 13
- Version
FlagPhoneNumber (please complete the following information):
- Version 0.7.6, 0.7.7, 0.7.8
having same problem. Version 0.7.6, 0.7.7, 0.7.8 all having same issue
I also have the same problem.Able to enter phone number but not showing cursor
Still an issue ?
yes I also faced the same issue, the keyboard not change
It would seem the UITextField's tintColor is being set to clear somehow. So a workaround is to just set it back to it's original color when it becomes the first responder.
So for Objective-C:
-(void) textFieldDidBeginEditing:(UITextField*)textField
{
if ( textField == _phoneNumberTextField )
{
_phoneNumberTextField.tintColor = _cursorColor; // where _cursorColor is the saved original color from when your view controller's view loads or something.
}
}
Just put this in textFieldDidEndEditing :
yourTextField.resignFirstResponder()
yourTextField.inputView = nil
yourTextField.inputAccessoryView = nil