You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have to use isExpanded as well as onToggle, the gist is you store the selected index in a state variable and only set expanded of an item if the index is equal to the selected index while looping through, here is an example:
I only want one open at a time. I've tried changing states of collapse, but nothing is working. I can open all of the items. Any thoughts?
The text was updated successfully, but these errors were encountered: