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 11{
22 "name" : " rc-scroll-anim" ,
3- "version" : " 0.3.8 " ,
3+ "version" : " 0.3.9 " ,
44 "description" : " scroll-anim anim component for react" ,
55 "keywords" : [
66 " react" ,
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ class ScrollLink extends React.Component {
107107 this . props . onFocus . call ( this , obj ) ;
108108 this . props . onFocus . only = true ;
109109 }
110- if ( this . state . active !== true ) {
110+ if ( ! this . state . active ) {
111111 this . setState ( {
112112 active : true ,
113113 } ) ;
@@ -121,7 +121,7 @@ class ScrollLink extends React.Component {
121121 this . props . onBlur . call ( this , obj ) ;
122122 }
123123 this . props . onFocus . only = false ;
124- if ( this . state . active !== false ) {
124+ if ( this . state . active ) {
125125 this . setState ( {
126126 active : false ,
127127 } ) ;
You can’t perform that action at this time.
0 commit comments