-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MaterialTextField TextChanged infinite loop #88
Comments
Hi. In what line does the looping occur. I tried to replicate the looping, and it happens when you set the private void MaterialTextField_TextChanged(object sender, TextChangedEventArgs e)
{
const int maxLength = 4;
var entry = sender as MaterialTextField;
var text = entry.Text ?? string.Empty;
if(text.Length > maxLength)
{
entry.Text = entry.Text.Substring(0, maxLength);
}
} |
After some investigation, the looping was caused by the Can you provide the other field declarations ( |
Yes, sure, following: This is my behavior
|
When trying to directly change the text in the change, it goes into infinite loop.
The text was updated successfully, but these errors were encountered: