Closed Darper closed 6 years ago
should it work with both?
It's coded to only work with booleans, but in reality it only works with strings. The intention was that boolean is required.
I think if we make it boolean, there will be errors when using regular divs, etc. for children. html only has string attributes. Do we want to restrict it to just AccordionPanel children? Either way, we should change the documentation for children prop, right now it says "Children should be either a string, an icon/glyphicon, or an image tag." which is misleading too.
Ah, sure. Then I suppose we should accept both.
Even though the
expanded
prop in AccordionPanel is expecting a boolean, it only works if the value is set to a string of "true".