Blazored / Typeahead

Typeahead control for Blazor applications
https://blazored.github.io/Typeahead/
MIT License
439 stars 103 forks source link

Scroll in dropdown menu #311

Open DeybiSuanca07 opened 8 months ago

DeybiSuanca07 commented 8 months ago

Good day to all!

I would like to ask how I can have the scroll in my drop-down menu, since I currently do not have it. This is my integration:


<BlazoredTypeahead SearchMethod="GetDeparmentsDelivery"
                   ConvertMethod="ConvertList"
                   ShowDropDownOnFocus="true"
                   EnableDropDown="true"
                   placeholder="Seleccionar.."
                   Value="holder.Department" ValueChanged="@((string value) => ChangeDepartmentsDelivery(value))" ValueExpression="@(() => holder.Department)">
    <SelectedTemplate Context="askSekureGetDeparmentsDeliveryIC">
        @askSekureGetDeparmentsDeliveryIC
    </SelectedTemplate>
    <ResultTemplate Context="askSekureGetDeparmentsDeliveryIC">
        @askSekureGetDeparmentsDeliveryIC.Value
    </ResultTemplate>
    <NotFoundTemplate Context="askSekureGetDeparmentsDeliveryIC">
        Seleccione un item de la lista
    </NotFoundTemplate>
</BlazoredTypeahead>`

Result:

![Captura de pantalla 2024-01-19 115215](https://github.com/Blazored/Typeahead/assets/75462499/bc89fffd-6e0e-477f-a7a4-60b4bf1ad0b5)

There are more than 20 departments in the list, but I want to show the first interaction with 10 results as you can see.

Please if anyone can help me, thank you!