Skip to content

Commit 4750442

Browse files
authored
Merge pull request #719 from VividLemon/master
fix(BLink): has class activeClass when prop active
2 parents d8727d2 + 5e1348a commit 4750442

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/bootstrap-vue-3/src/components/BLink/BLink.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
:is="routerTag"
1111
ref="link"
1212
:href="href"
13-
:class="[isActive && activeClass, isExactActive && exactActiveClass]"
13+
:class="[
14+
(isActive || activeBoolean) && activeClass,
15+
(isExactActive || exactBoolean) && exactActiveClass,
16+
]"
1417
v-bind="$attrs"
1518
@click="navigate"
1619
>

packages/bootstrap-vue-3/src/components/BNav/BNavItem.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<b-link
44
class="nav-link"
55
v-bind="$props"
6+
active-class="active"
67
:tabindex="disabledBoolean ? -1 : undefined"
78
:aria-disabled="disabledBoolean ? true : undefined"
89
>

0 commit comments

Comments
 (0)