Skip to content

Commit fa1c7ad

Browse files
committed
Update tabs.js
1 parent ddee895 commit fa1c7ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/tabs/tabs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ export const BTabs = /*#__PURE__*/ Vue.extend({
282282
},
283283
// If tabs added, removed, or re-ordered, we emit a `changed` event
284284
tabs(newValue, oldValue) {
285-
// We use `tab._uid` instead of `tab.safeId()`, as the later is changed
286-
// in a `$nextTick()` if no explicit ID is provided, causing duplicate emits
285+
// We use `_uid` instead of `safeId()`, as the later is changed in a `$nextTick()`
286+
// if no explicit ID is provided, causing duplicate emits
287287
if (
288288
!looseEqual(
289-
newValue.map(t => t[COMPONENT_UID_KEY]),
290-
oldValue.map(t => t[COMPONENT_UID_KEY])
289+
newValue.map($tab => $tab[COMPONENT_UID_KEY]),
290+
oldValue.map($tab => $tab[COMPONENT_UID_KEY])
291291
)
292292
) {
293293
// In a `$nextTick()` to ensure `currentTab` has been set first

0 commit comments

Comments
 (0)