fix: replace autofill string in textfield (#9555)

This commit is contained in:
Janos Hrubos
2021-09-21 08:07:27 +02:00
committed by GitHub
parent 183b4d4b10
commit 889f6d73cf

View File

@@ -205,7 +205,8 @@ export class TextField extends TextFieldBase {
}
if (this.updateTextTrigger === 'textChanged') {
if (textField.secureTextEntry && this.firstEdit) {
const shouldReplaceString = (textField.secureTextEntry && this.firstEdit) || delta > 1;
if (shouldReplaceString) {
textProperty.nativeValueChange(this, replacementString);
} else {
if (range.location <= textField.text.length) {