Skip to content

fix(ios): secureWithoutAutofill on TextField#11129

Merged
NathanWalker merged 1 commit intomainfrom
fix/ios-secureWithoutAutofill
Mar 4, 2026
Merged

fix(ios): secureWithoutAutofill on TextField#11129
NathanWalker merged 1 commit intomainfrom
fix/ios-secureWithoutAutofill

Conversation

@NathanWalker
Copy link
Contributor

  • improves secureWithoutAutofill onTextField with iOS to ensure it applies at the right time to prevent the autofill handling

@nx-cloud
Copy link

nx-cloud bot commented Mar 4, 2026

View your CI Pipeline Execution ↗ for commit d3bd6e9

Command Status Duration Result
nx test apps-automated -c=android ✅ Succeeded 5m 52s View ↗
nx run-many --target=test --configuration=ci --... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-04 19:23:30 UTC

@NathanWalker NathanWalker merged commit 5347c7e into main Mar 4, 2026
6 of 7 checks passed
@NathanWalker NathanWalker deleted the fix/ios-secureWithoutAutofill branch March 4, 2026 22:53
return;
}

const nativeField = textField as any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is cast to any necessary here? I understand these props are available in UITextField.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some properties are sdk level scoped so we can probably rather use SDK_VERSION scope on some.

*/
textField.secureTextEntry = true;
}
this._applySecureWithoutAutofillTraits(textField);
Copy link
Contributor

@CatchABus CatchABus Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need an extra flag to determine if the native props have already been updated and reduce _applySecureWithoutAutofillTraits calls since there are cases like reloadInputViews() that might be called multiple times while typing.
For instance, the old fix made sure to check whether secureTextEntry was already enabled or not before proceeding.

Copy link
Contributor

@CatchABus CatchABus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the PR got merged but I'll leave a couple of comments here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants