Skip to content

Commit eb2df6f

Browse files
purepvdmckaragoz
andauthored
MudComboBox: Change SetText Behavior at the Start of Lifecycle (#601)
* Fix: Use `_firstRendered` to conditionally update input text in `MudComboBox`, prevents StateHasChanged called before component is fully initialized. * Add More Proper Fix --------- Co-authored-by: Mehmet Can Karagöz <m.cankaragoz@outlook.com>
1 parent 87cae72 commit eb2df6f

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
@@ -812,7 +812,7 @@ protected override async Task OnParametersSetAsync()
812812
_searchString = ConvertSet(ReadValue);
813813
if (_inputReference != null)
814814
{
815-
await _inputReference?.SetText(_searchString);
815+
await SetTextCoreAsync(_searchString);
816816
}
817817
}
818818
}

0 commit comments

Comments
 (0)