You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove useEditTextStockAndroidBehavior and resolve old android blur issue (facebook#51338)
Summary:
Pull Request resolved: facebook#51338
There was some problems removing this feature flag earlier in that, on older android versions, we would try to focus the top most text input whenever any other text input would try to blur. This was ultimately and issue with how Android implements `clearFocus`. To fix this, lets block the focusability of all views while we clear the focus, then re-enable.
Changelog: [Internal]
Reviewed By: NickGerleman
Differential Revision: D74760594
fbshipit-source-id: 2811c08ad6ed0855da0a4d7fca89fb08f84905c2
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -926,7 +926,7 @@ public open class ReactTextInputManager public constructor() :
926
926
}
927
927
928
928
if (shouldBlur) {
929
-
editText.clearFocus()
929
+
editText.clearFocusAndMaybeRefocus()
930
930
}
931
931
932
932
// Prevent default behavior except when we want it to insert a newline.
0 commit comments