Skip to content

Commit

Permalink
Merge branch 'main' into feature/update-vue-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
open-hippy authored Nov 6, 2023
2 parents 1b15e99 + 5b203a4 commit e747002
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,22 @@
@implementation NativeRenderUITextField

- (void)setKeyboardType:(UIKeyboardType)keyboardType {
if(self.keyboardType == keyboardType){
return;
}
NSString *tempPwdStr = self.text;
self.text = @"";
if (keyboardType == UIKeyboardTypeTwitter) {
self.secureTextEntry = true;
} else {
self.secureTextEntry = false;
[super setKeyboardType:keyboardType];
}
[super setKeyboardType:keyboardType];
self.text = tempPwdStr;

if([self isFirstResponder]){
[self reloadInputViews];
}
}

- (void)setReturnKeyType:(UIReturnKeyType) returnKeyType{
Expand Down

0 comments on commit e747002

Please sign in to comment.