Skip to content

Commit ea2d422

Browse files
author
Pooya Parsa
committed
Revert "[NavItem] Change the component type to 'button' if 'href' or 'to' props are not defined"
This reverts commit 1518011.
1 parent 981a07a commit ea2d422

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/components/nav-item.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<li class="nav-item" @click="onclick">
3-
<b-link :is="itemType" :class="classObject" :to="to" :href="href" :exact="exact">
3+
<b-link :class="classObject" :to="to" :href="href" :exact="exact">
44
<slot></slot>
55
</b-link>
66
</li>
@@ -12,9 +12,6 @@
1212
export default {
1313
components: {bLink},
1414
computed: {
15-
itemType() {
16-
return (this.href || this.to) ? 'b-link' : 'button';
17-
},
1815
classObject() {
1916
return [
2017
'nav-link',

0 commit comments

Comments
 (0)