Closed facine closed 5 years ago
HI @facine , did you added the offcanvas.css with the reveal css-classes?
Yes @vmitsaras, these are the loaded files:
And this other de HTML code after open/close the push & reveal elements:
And these are the reveal errors:
There wasn't any c-offcanvas-content-wrap, sorry.
after add the wrapper it works fine.
thanks.
Hi, thanks for this great plugin!
I'm trying to develop a Drupal contrib module and I get this error only using reveal, with overlay and push works fine.
This works: `<a class="js-offcanvas-trigger" data-offcanvas-trigger="off-canvas-id" href="#off-canvas">Menu</a>
<div class="js-offcanvas" data-offcanvas-options='{"modifiers": "right,push"}' id="off-canvas-id">...</div>`
This isn't work: `<a class="js-offcanvas-trigger" data-offcanvas-trigger="off-canvas-id" href="#off-canvas">Menu</a>
<div class="js-offcanvas" data-offcanvas-options='{"modifiers": "right,reveal"}' id="off-canvas-id">...</div> `
Error message js-offcanvas.pkgd.js?v=1.x:89 Uncaught TypeError: Cannot read property 'addEventListener' of undefined at Object.utils.onEndTransition (js-offcanvas.pkgd.js?v=1.x:89) at window.componentNamespace.Offcanvas.Offcanvas.open (js-offcanvas.pkgd.js?v=1.x:591) at window.componentNamespace.Offcanvas.Offcanvas.toggle (js-offcanvas.pkgd.js?v=1.x:692) at toggleOffcanvas (js-offcanvas.pkgd.js?v=1.x:857) at HTMLAnchorElement. (js-offcanvas.pkgd.js?v=1.x:56)
at HTMLAnchorElement.dispatch (jquery.min.js?v=3.2.1:3)
at HTMLAnchorElement.q.handle (jquery.min.js?v=3.2.1:3)
Any idea? Thanks!