mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-27 04:09:31 +08:00
fix(ios): ignore multiline property for password type textinput
This commit is contained in:
@@ -38,6 +38,10 @@ HIPPY_EXPORT_MODULE(TextInput)
|
||||
- (UIView *)view {
|
||||
// todo: 最佳实践?
|
||||
NSNumber *mutiline = self.props[@"multiline"];
|
||||
NSString *keyboardType = self.props[@"keyboardType"];
|
||||
if ([keyboardType isKindOfClass:[NSString class]] && [keyboardType isEqual:@"password"]) {
|
||||
mutiline = @(NO);
|
||||
}
|
||||
HippyBaseTextInput *theView;
|
||||
if (mutiline != nil && !mutiline.boolValue) {
|
||||
HippyTextField *textField = [[HippyTextField alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user