Topic: Each time i load data accordions should be collapsed by default regardless of the same collapse id

nousherwan malik free asked 1 year 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;


Grzegorz Bujański staff commented 1 year ago

Unfortunately the code you added looks incomplete. Please resubmit this code and make sure all code is visible



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: 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