You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
This was affecting me also, however I combed through some PR's in the Material Components library and created a workaround until the bindings are updated. Turns out there is an issue with setting TextColor in the MDCTextField somewhere up the chain that is causing an infinite loop when SecureTextEntry is true (This commit and this PR led me to this).
To fix for now, create a custom TextField (MDCTextField) subclass if you don't have one already and override the TextColor property, adding a check like this:
public override UIColor TextColor
{
get => base.TextColor;
set
{
if (value != base.TextColor)
base.TextColor = value;
}
}
Use this class in place of where you would usually use TextField and it should get you by for now 🙂
I am using the MDC for text fields in my native Xamarin ios app.
If I set the secureTextEntry to true, the app freezes and eventually crashes when trying to enter text.
I believe this is related to this stackoverflow post and this Github issue.
The Github issue mentions this was a bug that was fixed in a newer version. Are they any plans on updating these components?
The text was updated successfully, but these errors were encountered: