Skip to content

Commit

Permalink
Fix missing props on secure text input (microsoft#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
appden authored and HeyImChris committed Mar 1, 2021
1 parent f55a999 commit 159dce1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,20 @@ - (void)setUseSecureTextField:(BOOL)useSecureTextField {
} else {
_backedTextInputView = [[RCTUITextField alloc] initWithFrame:self.bounds];
}
_backedTextInputView.accessibilityElement = previousTextField.accessibilityElement;
_backedTextInputView.accessibilityHelp = previousTextField.accessibilityHelp;
_backedTextInputView.accessibilityIdentifier = previousTextField.accessibilityIdentifier;
_backedTextInputView.accessibilityLabel = previousTextField.accessibilityLabel;
_backedTextInputView.accessibilityRole = previousTextField.accessibilityRole;
_backedTextInputView.caretHidden = previousTextField.caretHidden;
_backedTextInputView.contextMenuHidden = previousTextField.contextMenuHidden;
_backedTextInputView.defaultTextAttributes = previousTextField.defaultTextAttributes;
_backedTextInputView.editable = previousTextField.editable;
_backedTextInputView.placeholder = previousTextField.placeholder;
_backedTextInputView.placeholderColor = previousTextField.placeholderColor;
_backedTextInputView.selectionColor = previousTextField.selectionColor;
_backedTextInputView.textAlignment = previousTextField.textAlignment;
_backedTextInputView.textContainerInset = previousTextField.textContainerInset;
_backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_backedTextInputView.textInputDelegate = self;
_backedTextInputView.text = previousTextField.text;
Expand Down

0 comments on commit 159dce1

Please sign in to comment.