Skip to content

using menuPortal & controlElement should dynamically calculate position of the menu based on scroll #3349

@Rohanhacker

Description

@Rohanhacker
  • What's your use case? (Tell us about your application and what problem you're trying to solve.)
    If the react select is inside a scrollable container and we are passing menuPortal as body and a controlElement. The menu does not move with the scroll.
  • What interface do you have in mind? (What new properties or methods do you think might be helpful?)
    It should dynamically calculate the position of the menu when we scroll based on the scroll. We can pass the scroll container as prop eg. scrollContainer={this.refToContainer}
  • Can you point to similar functionality with any existing libraries or components? (Working demos can be helpful.)
    NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions