CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
369 stars 62 forks source link

(bug) [MudSelectExtended] does not scroll to selected item when updated externally #281

Open jneufferrpm opened 9 months ago

jneufferrpm commented 9 months ago

When using MudSelectExtended with bind-Value the select does not scroll to the selected value if it is changed.

When selecting a value using the select, and the select drop-down is subsequently opened, it is scrolled to the selected item. However when Value is changed by something other than the select itself, when subsequently opening the select it is not scrolled to the value.

Expected behavior: the select always scrolls to the selected value.

Perhaps there needs to be a call to ScrollToMiddleAsync in the setter for SelectedValue in MudListExtended?

mckaragoz commented 9 months ago

I think we can also add ScrollToMiddleAsync in OnOpen event.