mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: replace autofill string in textfield (#9555)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user