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

SelectExtended when opening dropdown, scrolls up the page

Open MatthijsVollenbroek opened this issue 1 year ago • 3 comments
trafficstars

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!

MatthijsVollenbroek avatar May 19 '24 19:05 MatthijsVollenbroek

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.

mckaragoz avatar May 19 '24 21:05 mckaragoz

Hey, I totally forgot about this issue post, my apologies. Have you been able to already solve this issue? Or do I need to still make a snippet?

MatthijsVollenbroek avatar Sep 09 '24 09:09 MatthijsVollenbroek

I have a similiar issue...

If you activate the SearchBox and Autofocus it jumps to the bottom of the page when you open the dropdown for the first time

Garray2002 avatar Oct 23 '24 13:10 Garray2002