Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion maui/src/TextInputLayout/SfTextInputLayout.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ internal void OnTextInputViewTextChanged(object? sender, TextChangedEventArgs e)
{
if (!IsHintAlwaysFloated)
{
IsHintFloated = false;
IsHintDownToUp = true;
InvalidateDrawable();
}
Expand All @@ -173,7 +174,7 @@ internal void OnTextInputViewTextChanged(object? sender, TextChangedEventArgs e)

// Clear icon can't draw when isClearIconVisible property updated based on text.
// So here call the InvalidateDrawable to draw the clear icon.
if (Text.Length == 1 || Text.Length == 0)
if (Text?.Length <= 1)
{
InvalidateDrawable();
}
Expand Down