fix: replace autofill string in textfield (#9555)

This commit is contained in:
Janos Hrubos
2021-09-20 23:07:27 -07:00
committed by GitHub
parent 183b4d4b10
commit 889f6d73cf
+2 -1
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) {