Skip to content

Commit 3d94270

Browse files
committed
Improve menu behavior to prevent a jumpy UI when a new page is loading.
1 parent 0bd41ed commit 3d94270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $(function () {
1414

1515
// Click outside of menu to close it
1616
flexContainer.click(function (e) {
17-
if (flexContainer.hasClass('active')) {
17+
if (flexContainer.hasClass('active') && e.target.tagName !== 'A') {
1818
flexContainer.removeClass('active')
1919
}
2020
})

0 commit comments

Comments
 (0)