aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-12-24 14:29:41 -0800
committerMark Otto <[email protected]>2016-12-24 14:29:41 -0800
commitcd18ee8af693755798eb9d20dfc82a350996c04b (patch)
treec2ff8517fc41688230f15aa978e3f903289c27d3 /docs/dist/js/bootstrap.js
parent43ef8b129e6a2d74408b22d55c213d781f9e929a (diff)
downloadbootstrap-cd18ee8af693755798eb9d20dfc82a350996c04b.tar.xz
bootstrap-cd18ee8af693755798eb9d20dfc82a350996c04b.zip
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
-rw-r--r--docs/dist/js/bootstrap.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js
index dbf9064e8..b77bb41ad 100644
--- a/docs/dist/js/bootstrap.js
+++ b/docs/dist/js/bootstrap.js
@@ -750,13 +750,14 @@ var Carousel = function ($) {
if (/input|textarea/i.test(event.target.tagName)) {
return;
}
- event.preventDefault();
switch (event.which) {
case ARROW_LEFT_KEYCODE:
+ event.preventDefault();
this.prev();
break;
case ARROW_RIGHT_KEYCODE:
+ event.preventDefault();
this.next();
break;
default:
@@ -2395,7 +2396,7 @@ var ScrollSpy = function ($) {
} else {
// todo (fat) this is kinda sus...
// recursively add actives to tested nav-links
- $link.parents(Selector.LI).find(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
+ $link.parents(Selector.LI).find('> ' + Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
}
$(this._scrollElement).trigger(Event.ACTIVATE, {