File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,6 @@ export class UISrefActive extends Component<IProps,any> {
54
54
55
55
addStateInfo = ( stateName , stateParams ) => {
56
56
const activeClass = this . props . class ;
57
- // if the class props is an object we already got explicit states
58
- // provided by UISrefActive components, so we shadow the one
59
- // coming from UISref
60
- if ( typeof activeClass === 'object' && this . states . length > 0 ) return ;
61
57
let deregister = this . addState ( stateName , stateParams , activeClass ) ;
62
58
this . forceUpdate ( ) ;
63
59
return deregister ;
@@ -77,7 +73,7 @@ export class UISrefActive extends Component<IProps,any> {
77
73
this . states . push ( stateInfo ) ;
78
74
this . activeClasses [ stateHash ] = activeClass ;
79
75
return ( ) => {
80
- let idx = state . indexOf ( stateInfo ) ;
76
+ let idx = this . states . indexOf ( stateInfo ) ;
81
77
if ( idx !== - 1 ) this . states . splice ( idx , 1 ) ;
82
78
}
83
79
}
You can’t perform that action at this time.
0 commit comments