@@ -2,9 +2,6 @@ import Vue from '../../utils/vue'
22import idMixin from '../../mixins/id'
33import normalizeSlotMixin from '../../mixins/normalize-slot'
44import BVTransition from '../../utils/bv-transition'
5- import warn from '../../utils/warn'
6-
7- const DEPRECATED_MSG = 'Setting prop "href" is deprecated. Use the <b-nav> component instead.'
85
96// @vue /component
107export const BTab = /*#__PURE__*/ Vue . extend ( {
@@ -60,16 +57,6 @@ export const BTab = /*#__PURE__*/ Vue.extend({
6057 type : Boolean ,
6158 default : false
6259 } ,
63- href : {
64- // This should be deprecated, as tabs are not navigation (URL) based
65- // <b-nav> + <b-card> + <router-view>/<nuxt-child> should be used instead
66- // We don't support router-links here
67- type : String ,
68- default : '#' ,
69- // `deprecated` -> Don't use this prop
70- // `deprecation` -> Refers to a change in prop usage
71- deprecated : DEPRECATED_MSG
72- } ,
7360 lazy : {
7461 type : Boolean ,
7562 default : false
@@ -118,6 +105,7 @@ export const BTab = /*#__PURE__*/ Vue.extend({
118105 // If activated post mount
119106 this . activate ( )
120107 } else {
108+ /* istanbul ignore next */
121109 if ( ! this . deactivate ( ) ) {
122110 // Tab couldn't be deactivated, so we reset the synced active prop
123111 // Deactivation will fail if no other tabs to activate
@@ -140,11 +128,6 @@ export const BTab = /*#__PURE__*/ Vue.extend({
140128 this . registerTab ( )
141129 // Initially show on mount if active and not disabled
142130 this . show = this . localActive
143- // Deprecate use of `href` prop
144- if ( this . href && this . href !== '#' ) {
145- /* istanbul ignore next */
146- warn ( `b-tab: ${ DEPRECATED_MSG } ` )
147- }
148131 } ,
149132 updated ( ) {
150133 // Force the tab button content to update (since slots are not reactive)
0 commit comments