Closed marcemira closed 8 years ago
+1 to this issue.
Hi @marcemira,
Currently content
should be a jQuery object, you are passing an HTMLElement to the Dropdown. Just replace document.querySelector
with var content = $('.langs-list')
and let me know is that works.
Passing a jQuery object works fine. Thanks @atma
Hello, I'm trying to initialize a Dropdown like this:
The problem is that it doesn't show any content (according to Dropdown API Docs) and the console throws an error:
Uncaught TypeError: Cannot read property 'cloneNode' of undefined
on https://github.com/mercadolibre/chico/blob/master/src/shared/scripts/Dropdown.js#L179.Am I doing something wrong? Thanks