Skip to content

Commit

Permalink
Merge pull request #299 from enisn/2.4-textfield-validation-fix
Browse files Browse the repository at this point in the history
Don't ignore empty string for validation
  • Loading branch information
enisn authored Apr 29, 2023
2 parents e4fd48f + 2e15af1 commit 18a73a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UraniumUI.Material/Controls/TextField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private void EntryView_TextChanged(object sender, TextChangedEventArgs e)
UpdateState();
}

if (!string.IsNullOrEmpty(e.NewTextValue))
if (e.NewTextValue != null)
{
CheckAndShowValidations();
}
Expand Down

0 comments on commit 18a73a4

Please sign in to comment.