Skip to content

Feature Request: Add maxOptions prop #3091

@nithinpeter

Description

@nithinpeter

Prop to restrict the number of results

We need a way to restrict the number of results rendered on the Select/Async select components.

Use case

This is extremely useful if the number of options is too high and if someone wants to limit the items being displayed to improve performance.

API

Add maxOptions optional prop for Select/AsyncSelect which takes a number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/has-prIssue has a PR attached to it that may solve the issueissue/reviewedIssue has recently been reviewed (mid-2020)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions