Skip to content

Commit 208651b

Browse files
Support external links as tabs
1 parent ac9f7fa commit 208651b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bootstrap-hover-tabs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(function ($) {
22
$(function () {
3-
$(document).on('mouseenter', '[data-toggle="tab"]', function () {
3+
$(document).off('click.bs.tab.data-api', '[data-hover="tab"]');
4+
$(document).on('mouseenter.bs.tab.data-api', '[data-toggle="tab"], [data-hover="tab"]', function () {
45
$(this).tab('show');
56
});
67
});

0 commit comments

Comments
 (0)