Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent ScrollView From Stealing Responder Capture When Using Physica…
…l Keyboard (#29798) Summary: Fixes microsoft/react-native-windows#5867 ScrollResponder has logic so that the first tap exiting out of a soft keyboard is captured instead of leaking to its children. This state is checked by testing if `TextInputState.currentlyFocusedInput()` is non-null. This also fires in cases a soft keyboard is not present (e.g. on Desktop where a physical keyboard is in use). This presents to users as clicks/taps not being registered when moving from a TextInput to something esle. Instead of checking TextInputState to see if the softKeyboard is open, check `this.keyboardWillOpenTo`, which is tied to keyboard open and close events. ## Changelog [General] [Fixed] - Prevent ScrollView From Stealing Responder Capture When Using Physical Keyboard Pull Request resolved: #29798 Test Plan: Validated that on react-native-windows, ScrollView will capture responder events when tapped and a soft-keyboard is open, but will not capture events when clicking from a TextView to a child of a ScrollView and no soft keyboard is open. Reviewed By: kacieb Differential Revision: D23426786 Pulled By: TheSavior fbshipit-source-id: 7138ef0bc4508aaec5531f455b022b105b5d858a
- Loading branch information