mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
Fixed: blurOnSubmit should be true by default for singleline <TextInput>
Differential Revision: D5224356 fbshipit-source-id: e8a9f607270ab93e40cca3b701bdcb31524137fe
This commit is contained in:
committed by
Facebook Github Bot
parent
01afc16bfc
commit
b6cf4eeed6
@@ -42,6 +42,9 @@
|
||||
_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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user