moroshko / react-autowhatever

Accessible rendering layer for Autosuggest and Autocomplete components

Home Page:http://react-autowhatever.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Item container always open

carpben opened this issue · comments

Are you reporting a bug?

No

Are you making a feature request?

No

My issue is demonstrated with this basic example.
(http://codepen.io/moroshko/pen/rraQYx). In this example the items container always has the class 'react-autowhatever__items-container--open' and therefor is always open. I started buiding a component with this example as a template. I tried providing additional properties from 'example 9' and 'react-auto-suggest' to close the container, but couldn't find how it is done. How do u change the behavior of the item container from being always open to open only when it is clicked or focused?

Figured it out.