Skip to content

Error scrolling scroll using (MAT-OPTION) and (MAT-AUTOCOMPLETE) #23353

Open
@GlauberF

Description

@GlauberF

Actual Behavior

I don't know if it's a normal action, but when using mat-option together with mat-autocomplete, when scrolling with the mouse, the options present in mat-option take off in the field.
I want that even though the mouse/scroll is scrolled, the options inside mat-autocomplete remain fixed to the main component.

In the GIF below I show how it is behaving today and that I want to fix it by keeping it fixed to the component

vokoscreen-2021-08-12_09-54-50

And looking at the HTML code, it generates fixed positions and doesn't update with the scroll change
Captura de Tela_selecionar área_20210812101020

in my tests the value for top should change, however it fixes with fixed values and does not update, generating this gif effect.

Expected Behavior

keep the options(mat-option) fixed to the main component, even when scrolling the mouse

Environment

  • Angular: 11.2.12
  • CDK/Material: 11.2.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/overlayneeds: clarificationThe issue does not contain enough information for the team to determine if it is a real bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions