CodeBeamOrg / CodeBeam.MudBlazor.Extensions

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

SelectExtended when opening dropdown, scrolls up the page #403

Open MatthijsVollenbroek opened 1 month ago

MatthijsVollenbroek commented 1 month ago

Hi,

When using the mudselectextended component, I am having issues with opening the dropdown, below code is how im using it

<MudSelectExtended T="TValue"
                   Label="@Label"
                   For="@For"
                   Required="@IsRequired"
                   Clearable="@false"
                   AnchorOrigin="@Origin.BottomCenter"
                   @bind-Value="@Value"
                   MultiSelection="@false"
                   ReadOnly="@IsReadOnly"
                   SearchBox="@true"
                   SearchBoxAutoFocus="@true"
                   SearchBoxClearable="@true"
                   SearchBoxPlaceholder="@Localizer[nameof(FormResource.Search)]"
                   ItemCollection="@SelectOptions.ToList()"

In this case, my TValue is of type struct, enum. But with classes i have this issue too.

When I click on the dropdown, my page scrolls/jumps up, forcing me to scroll down back to where the select is used. I am using the version 6.9.2

Is this a known issue? Or am I doing something wrong?

Thanks in advance for answering!

mckaragoz commented 1 month ago

I also encountered this bug, currently no idea what is happening. I suspect ScrollToTheMiddle might also run for the page.

If you can share a snippet, i can work on this.