mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 20:01:01 +08:00
Fix multi-character TextInput
Reviewed By: hnery Differential Revision: D3457105 fbshipit-source-id: dcb364123ed82842d4fb2dee9108f2805249a8f9
This commit is contained in:
committed by
Facebook Github Bot 1
parent
57d85f1c3e
commit
cc959273da
@@ -125,6 +125,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
attrs[NSBackgroundColorAttributeName] = subview.backgroundColor;
|
||||
_textView.typingAttributes = attrs;
|
||||
}
|
||||
|
||||
[self performTextUpdate];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,6 +135,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
[super removeReactSubview:subview];
|
||||
if (_richTextView == subview) {
|
||||
_richTextView = nil;
|
||||
[self performTextUpdate];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user