Skip to content

Commit 7f983c6

Browse files
compiling dist files
1 parent 6179803 commit 7f983c6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dist/jquery.bootstrap-dropdown-hover.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
clickBehavior: 'sticky', // Click behavior setting:
3232
// 'default' means that the dropdown toggles on hover and on click too
3333
// 'disable' disables dropdown toggling with clicking when mouse is detected
34+
// 'link' disabled dropdown toggling, but allows link clicks to go through
3435
// 'sticky' means if we click on an opened dropdown then it will not hide on
3536
// mouseleave but on a second click only
3637
hideTimeout: 200
@@ -96,7 +97,7 @@
9697
});
9798

9899
dropdown.element.on('click.dropdownhover', function (e) {
99-
if (!_mouseDetected) {
100+
if (dropdown.settings.clickBehavior !== 'link' && !_mouseDetected) {
100101
return;
101102
}
102103

@@ -106,7 +107,10 @@
106107
case 'disable':
107108
e.preventDefault();
108109
e.stopImmediatePropagation();
109-
break;
110+
return;
111+
case 'link':
112+
e.stopImmediatePropagation();
113+
return;
110114
case 'sticky':
111115
if (_hardOpened) {
112116
_hardOpened = false;

dist/jquery.bootstrap-dropdown-hover.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)