Skip to content

fix: FluentSelect inside overflow:auto container #3960

@JamesNK

Description

@JamesNK

🐛 Bug Report

I have a dialog that I've given a max height to. The dialog could contain a FluentSelect instance and the dialog body has a max height and scrolls when the height is exceeded:

#interactions-input-dialog .interaction-input-dialog {
    max-height: 50vh;
    overflow-y: auto;
}

When the FluentSelect opens, it opens inside the scrollable container, adding scrollbars and not being completely visible:

Image

💻 Repro or Code Sample

🤔 Expected Behavior

I expect the FluentSelect to behave like a normal HTML select and open outside the scrollable element:

Image

😯 Current Behavior

Opens inside the scrollable container, adding scrollbars and not being completely visible.

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:blockedAny issue blocked by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions