Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Limiting options shown in the dropdown #241

Answered by janosh
AaronPlave asked this question in Q&A
Discussion options

Is there any way to limit the number of options rendered in the dropdown without interfering with the filtering capabilities? I'm looking to use this component as more of a tags input with autocomplete as opposed to a true multiselect and anticipate that I may need to provide thousands of options which would be too much to show in the dropdown.

You must be logged in to vote

I just opened #243 that adds a maxOptions prop. You can see it in action on the landing page in the countries example. Does this serve your purpose?

Replies: 1 comment 2 replies

Comment options

I just opened #243 that adds a maxOptions prop. You can see it in action on the landing page in the countries example. Does this serve your purpose?

You must be logged in to vote
2 replies
Comment options

Perfect, it sure does! Thank you for the speedy response!

Comment options

Great! Will be part of the next release. No firm date yet.

Answer selected by AaronPlave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /