CodeBeam.MudBlazor.Extensions icon indicating copy to clipboard operation
CodeBeam.MudBlazor.Extensions copied to clipboard

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

Open jneufferrpm opened this issue 2 years ago • 1 comments
trafficstars

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?

jneufferrpm avatar Sep 22 '23 04:09 jneufferrpm

I think we can also add ScrollToMiddleAsync in OnOpen event.

mckaragoz avatar Sep 29 '23 20:09 mckaragoz