gijsroge/priority-navigation

Option values not working

Opened this issue · 2 comments

The starting problem is with async Attribute which not execute the function at all.
When removing async Attribute, the function works fine outputing the right html with default classes while all options values are not being effective.

var wrapper = document.querySelector("nav");
var nav = priorityNav.init({
  mainNavWrapper: "nav",
  mainNav: ".navigation",
  navDropdown: "goold",
  navDropdownLabel: "googl",
  breakPoint:800
});

Any help with this issue?

Could you setup a codepen?

Since my project is on RTL pages, I managed to express in the same way:
http://codepen.io/anon/pen/JGpJXO