Topic: Each time i load data accordions should be collapsed by default regardless of the same collapse id
nousherwan malik asked 2 years ago
Expected behavior
Accordions should be collapsed each time i populate from the data
Actual behavior
whenever i change the data dynamically the accordion which i left open last time before new data load same accordion with the same id is not collapsed rather it is opened.
Resources (screenshots, code snippets etc.)
const Detail = (props) => {
return (
<>
toggleAccordion(props.details.id)}
headerTitle={
<>
{props.details.techInfo.additionalInfo.applicationName +
" (" +
props.details.techInfo.additionalInfo.applicationEnvironment +
")"}
}
>
</>
); };
export default Detail;
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: MDB5 5.1.0
- Device: laptop
- Browser: chrome
- OS: widows
- Provided sample code: No
- Provided link: No
Grzegorz Bujański staff commented 2 years ago
Unfortunately the code you added looks incomplete. Please resubmit this code and make sure all code is visible