mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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
|
||||
|
||||
Reference in New Issue
Block a user