bulma-collapsible icon indicating copy to clipboard operation
bulma-collapsible copied to clipboard

Does not work with Bulma version: 0.9.3

Open JaiMistry opened this issue 2 years ago • 3 comments

Installed extension using instructions from the live demo via npm. Currently not functioning.

JaiMistry avatar Mar 09 '22 00:03 JaiMistry

This is for me too. Im getting bulmaCollapsible is not defined in my Mage2 set up.

KirstyMarks-Roar avatar Jun 15 '22 19:06 KirstyMarks-Roar

Same.

dan avatar Feb 07 '23 14:02 dan

I looked up the source files and found a workaround - if you are getting the following error ...

Uncaught TypeError: Cannot read properties of undefined (reading 'container')

you can simply wrap your container with document.getElementById('...').

If you are using the collapsible Card from the documentation, your JS should look like this:

var bulmaCollapsible = new bulmaCollapsible(document.getElementById("collapsible-card"));

It's different than the Code from the documentation, but it works - hope I could help.

magondev avatar Apr 07 '23 12:04 magondev