Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Regarding Collapse

SourceCorrect1 priority asked 3 years ago


Expected behavior

on page load by default, it should be in the expanded state, when the user clicks on the button it should collapse without flickering,

Actual behavior

when you apply show class by default to MDB collapse on page load when the user clicks on the button for the first time it is getting flickered, from second time it will work properly (I can't say flickering looks like it is getting collapse and expand within a fraction of seconds) code snippet is below

Resources (screenshots, code snippets, etc.)

Button

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.

Arkadiusz Idzikowski staff commented 3 years ago

@SourceCorrect1 Can you provide an example code that you used to render the component? In the MDB5 Angular version, you should not add any class directly to the component code. There is a [collapsed] input that you can set to true or false to manage the default component state.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 1.0.0
  • Device: desktop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No