Skip to content

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

Open
caguthrie wants to merge 1 commit intomoroshko:masterfrom
caguthrie:master
Open

Don't default isOpen to false if using renderItemsContainer with empty items#38
caguthrie wants to merge 1 commit intomoroshko:masterfrom
caguthrie:master

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