Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't default isOpen to false if using renderItemsContainer with empty items #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caguthrie
Copy link

@caguthrie caguthrie commented Mar 23, 2018

This PR addresses this Github issue in react-autosuggest: moroshko/react-autosuggest#486

If a renderItemsContainer is provided, isOpen is true. We may want the items container to be open even if there are no renderedItems.

I literally used the code change that @moroshko suggested, and added the requisite tests.

@caguthrie caguthrie changed the title Don't default isOpen to false if using renderItemsContainer Don't default isOpen to false if using renderItemsContainer with empty items Mar 23, 2018
@caguthrie
Copy link
Author

Also, if this is merged, can a version please be cut so I can raise a PR into react-autosuggest. In addition to the version bump in the package.json and the code snippet in the above issue I will put in react-autosuggest, some tests in react-autosuggest will need to be changed as they expect the items container to be closed when there are no suggestions,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant