Describe the bug
When a hardware keyboard is connected to an iOS device it causes the component to loose focus on selection
To Reproduce
Steps to reproduce the behavior:
On an iOS device or iOS simulator connect a hardware keyboard.
Select an OTP input
The component looses focus after a few milliseconds.
Expected behavior
Component does not loose focus
Smartphone (please complete the following information):
Device: iPad simulator 9th gen
OS: 15.5
React Version: 16.13.1
RN Version: 0.63.4
Additional context
I identified the cause of this message and have a proposed fix.
The behavior happens because the software keyboard appears for 0 milliseconds, and then gets hidden by the hardware keyboard.
This triggers the handleKeyboardDidHide event handler in the index.tsx file
If you add a check to ensure that the event duration on that event handler was longer then 0 milliseconds that will fix the issue.
Describe the bug When a hardware keyboard is connected to an iOS device it causes the component to loose focus on selection
To Reproduce Steps to reproduce the behavior:
Expected behavior Component does not loose focus
Smartphone (please complete the following information):
Additional context I identified the cause of this message and have a proposed fix. The behavior happens because the software keyboard appears for 0 milliseconds, and then gets hidden by the hardware keyboard. This triggers the handleKeyboardDidHide event handler in the index.tsx file If you add a check to ensure that the event duration on that event handler was longer then 0 milliseconds that will fix the issue.