You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MudSelectExtended: cannot re-select previously selected option after programmatic change #556
After selecting “A” in a MudSelectExtended, calling its ValueChanged callback in code to set the value to “B” works—but then clicking “A” again in the dropdown does not fire ValueChanged, so you can never go back to “A.”
maybe related - with SelectExtended once the option picked and I'm calling componentReference.Clear() or _.ResetAsync() in OnChanged handler I'm expecting that same option would be possible to select again, but but the handler will not react again unless I'm switch to some another option and switch back. So Clear() or ResetAsync() seem to not actually resetting internal state completely.
Hey, have either of you found a workaround for this that doesn't involve binding a single value to SelectedValues? I'm experiencing the same issue (I need to reset the value to null but neither setting it to null directly nor Clear()/ResetAsync() work).
@cherepakhina my workaound looking like this: assigning null to the value, which makes the handler to run twise on every user selection, and using the boolean field inserted to check if handler been executed with non-trivial argument, and resetting it.
@ref="selectExtended2"Value="null"ValueChanged="@(async data => {
if(datais not null&&!inserted){//here you place actual logic to runinserted=true;}
else inserted=false;awaitselectExtended2!.ResetAsync();})"
Activity
konst-sh commentedon Aug 16, 2025
maybe related - with SelectExtended once the option picked and I'm calling componentReference.Clear() or _.ResetAsync() in OnChanged handler I'm expecting that same option would be possible to select again, but but the handler will not react again unless I'm switch to some another option and switch back. So Clear() or ResetAsync() seem to not actually resetting internal state completely.
cherepakhina commentedon Sep 30, 2025
Hey, have either of you found a workaround for this that doesn't involve binding a single value to SelectedValues? I'm experiencing the same issue (I need to reset the value to null but neither setting it to null directly nor Clear()/ResetAsync() work).
konst-sh commentedon Sep 30, 2025
@cherepakhina my workaound looking like this: assigning null to the value, which makes the handler to run twise on every user selection, and using the boolean field
insertedto check if handler been executed with non-trivial argument, and resetting it.JakubTracz commentedon Dec 13, 2025
Hi, are there any plans to have it fixed? Thanks