mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Watch for clicks on menus, not items
This commit is contained in:
@@ -57,8 +57,8 @@ if(typeof jQuery === 'undefined') {
|
||||
.toggleClass('active')
|
||||
.trigger($(dropdown).is('.active') ? 'show' : 'hide');
|
||||
} else {
|
||||
// Don't scroll the page when clicking on dropdown items
|
||||
if($(event.target).is('.dropdown-menu a')) {
|
||||
// Don't scroll the page when clicking on dropdown menu items
|
||||
if($(event.target).parents().addBack().is('.dropdown-menu')) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user