You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previous iterations of the library used the original menu as a guide to
construct a clone. This resulted in any existing classes or attributes
not being carried over.
This commit now clones the original menu directly, enhancing it with our
desired classes/data-attributes. Event listeners are not preserved due
to the cloning.
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -302,3 +302,15 @@ If your menu is part of an auto-sized flex-child, it will probably need a positi
302
302
flex-grow: 1;
303
303
}
304
304
```
305
+
306
+
### Navigation event listeners
307
+
308
+
priorityPlus makes a copy of your menu, rather than reusing the original. Classes and attributes are carried over, but not event listeners. This means that any additional libraries or JavaScript which operate on the menu and its children needs to be run (or re-run) after initialization:
0 commit comments