From b6cf4eeed6f44a3ace2750c36f5000b795831cd4 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Sat, 10 Jun 2017 08:19:34 -0700 Subject: [PATCH] Fixed: `blurOnSubmit` should be `true` by default for singleline Differential Revision: D5224356 fbshipit-source-id: e8a9f607270ab93e40cca3b701bdcb31524137fe --- Libraries/Text/RCTTextField.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Text/RCTTextField.m b/Libraries/Text/RCTTextField.m index a6214fe81..0fde9f4da 100644 --- a/Libraries/Text/RCTTextField.m +++ b/Libraries/Text/RCTTextField.m @@ -42,6 +42,9 @@ _bridge = bridge; _eventDispatcher = bridge.eventDispatcher; + // `blurOnSubmit` defaults to `true` for by design. + _blurOnSubmit = YES; + _textField = [[RCTUITextField alloc] initWithFrame:self.bounds]; _textField.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;