Open webcliq opened 3 years ago
It looks like you forgot to add the .dropdown
class to the <button>
. As laid out in the documentation, the .dropdown class and data-toggle="dropdown" attributes are both required for the closing to properly work. Can you try again and see how it goes?
I am in the process of building a new site from scratch with Petal for the first time. I am at the wireframe / design stage. I am trying to create a menu bar out of buttons (extra vote for Nav component please).
When I click on the "caret" to instantiate the dropdown, there are no problems and the list appears but when I click on the "caret" again to hide the menu, it does not hide and the JS console displays an error:
Uncaught TypeError: can't access property "parentNode", dropdown_el is null
I have examined the source of your buttons in your Documentation and my code is a copy of that:
`