Permalink
Browse files

Fixed: `blurOnSubmit` should be `true` by default for singleline <Tex…

…tInput>

Differential Revision: D5224356

fbshipit-source-id: e8a9f607270ab93e40cca3b701bdcb31524137fe
  • Loading branch information...
shergin authored and facebook-github-bot committed Jun 10, 2017
1 parent 01afc16 commit b6cf4eeed6f44a3ace2750c36f5000b795831cd4
Showing with 3 additions and 0 deletions.
  1. +3 −0 Libraries/Text/RCTTextField.m
@@ -42,6 +42,9 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
_bridge = bridge;
_eventDispatcher = bridge.eventDispatcher;
// `blurOnSubmit` defaults to `true` for <TextInput multiline={false}> by design.
_blurOnSubmit = YES;
_textField = [[RCTUITextField alloc] initWithFrame:self.bounds];
_textField.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

0 comments on commit b6cf4ee

Please sign in to comment.