Skip to content

Commit

Permalink
Fixed: blurOnSubmit should be true by default for singleline <Tex…
Browse files Browse the repository at this point in the history
…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 b6cf4ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Libraries/Text/RCTTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b6cf4ee

Please sign in to comment.