Skip to content

Commit 0579831

Browse files
authored
Fix: Use _firstRendered to conditionally update input text in MudComboBox, prevents StateHasChanged called before component is fully initialized.
1 parent 87cae72 commit 0579831

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/CodeBeam.MudBlazor.Extensions/Components/ComboBox/MudComboBox.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ protected override async Task OnParametersSetAsync()
810810
if (MultiSelection == false)
811811
{
812812
_searchString = ConvertSet(ReadValue);
813-
if (_inputReference != null)
813+
if (_firstRendered)
814814
{
815815
await _inputReference?.SetText(_searchString);
816816
}

0 commit comments

Comments
 (0)