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
I am having difficulties expanding the accordian item as soon as state change
This is my state const [expandedItems, setExpandedItems] = React.useState<string[]>(['item-0']);
This is my element <Accordion className='flex flex-col' preExpanded={expandedItems} onChange={(expanded: string[]) => { setExpandedItems(expanded); }} allowZeroExpanded allowMultipleExpanded>
This is how I am updating the state if (!expandedItems.includes(`item-${index}`)) { setExpandedItems([...expandedItems, `item-${index}`]); }
No description provided.
The text was updated successfully, but these errors were encountered: