File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rc-scroll-anim" ,
3
- "version" : " 0.3.8 " ,
3
+ "version" : " 0.3.9 " ,
4
4
"description" : " scroll-anim anim component for react" ,
5
5
"keywords" : [
6
6
" react" ,
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class ScrollLink extends React.Component {
107
107
this . props . onFocus . call ( this , obj ) ;
108
108
this . props . onFocus . only = true ;
109
109
}
110
- if ( this . state . active !== true ) {
110
+ if ( ! this . state . active ) {
111
111
this . setState ( {
112
112
active : true ,
113
113
} ) ;
@@ -121,7 +121,7 @@ class ScrollLink extends React.Component {
121
121
this . props . onBlur . call ( this , obj ) ;
122
122
}
123
123
this . props . onFocus . only = false ;
124
- if ( this . state . active !== false ) {
124
+ if ( this . state . active ) {
125
125
this . setState ( {
126
126
active : false ,
127
127
} ) ;
You can’t perform that action at this time.
0 commit comments