File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const getIndex = (el) => Array.from(el.parentNode.children).indexOf(el)
8
8
9
9
const getState = ( { current : el } ) => {
10
10
const hasSiblings = el . parentElement . childNodes . length > 1
11
- return el . dataset . id || getIndex ( hasSiblings ? el : el . parentElement )
11
+ return el . dataset . tab || getIndex ( hasSiblings ? el : el . parentElement )
12
12
}
13
13
14
14
const CNavLink = props => {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { Context } from './CTabs.js'
7
7
//component - CoreUI / CTabPane
8
8
const getIndex = ( el ) => Array . from ( el . parentNode . children ) . indexOf ( el )
9
9
10
- const getState = r => r . current . id || getIndex ( r . current )
10
+ const getState = r => r . current . dataset . tab || getIndex ( r . current )
11
11
12
12
const CTabPane = props => {
13
13
You can’t perform that action at this time.
0 commit comments