Resign text input as first responder in prepareForRecycle

Summary:
Changelog: [internal]

To prevent wrong TextInput becoming first responder, force a resign when preparing for a reuse.

Reviewed By: JoshuaGross

Differential Revision: D29085923

fbshipit-source-id: 246cdf0628f914c3928cc9c7499d029b77684f2c
This commit is contained in:
Samuel Susla
2021-06-12 12:26:27 -07:00
committed by Facebook GitHub Bot
parent ed76d4d8db
commit a5b92f34c4
@@ -258,6 +258,7 @@ using namespace facebook::react;
_lastStringStateWasUpdatedWith = nil;
_ignoreNextTextInputCall = NO;
_didMoveToWindow = NO;
[_backedTextInputView resignFirstResponder];
}
#pragma mark - RCTBackedTextInputDelegate