app/assets/javascripts/partystreusel/offcanvas.js.coffee in partystreusel-1.1.0 vs app/assets/javascripts/partystreusel/offcanvas.js.coffee in partystreusel-1.1.1
- old
+ new
@@ -19,8 +19,9 @@
toggleNavLink: (e) =>
navLink = $(e.target).closest('.offcanvas-nav__link')
subNav = navLink.next('.offcanvas-nav__sub')
return if subNav.length == 0
e.preventDefault()
+ navLink.toggleClass('offcanvas-nav__link--active')
subNav.toggleClass('offcanvas-nav__sub--open')
Partystreusel.Offcanvas = Offcanvas