Skip to content

Commit c8462d0

Browse files
Implemented method to clear search text value in mudchipfield. (#442)
Co-authored-by: Aishwarya Sounderrajan <[email protected]>
1 parent 26f2275 commit c8462d0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CodeBeam.MudBlazor.Extensions/Components/ChipField/MudChipField.razor.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,14 @@ public async Task Closed(MudChip<T> chip)
199199
await _textFieldExtendedReference.FocusAsync();
200200
}
201201

202+
/// <summary>
203+
/// Clear the text field.
204+
/// </summary>
205+
/// <returns></returns>
206+
public async Task ClearTextField()
207+
{
208+
await _textFieldExtendedReference.Clear();
209+
}
210+
202211
}
203212
}

0 commit comments

Comments
 (0)