Skip to content

Proper handling/creating of bootstrap classes in pure javascript? (V5) #31715

Answered by Johann-S
MasterEvilAce asked this question in General
Discussion options

You must be logged in to vote

Hi @MasterEvilAce,

You shouldn't try to create a new Collapse on each click, instead you should create them when the DOM is ready or when your component is rendered. Like that you won't have to deal with : "Should I create a Collapse ? Or should I get an existing one ?" because you'll know the collapse already exist

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Johann-S
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants