Skip to content

Commit c352d95

Browse files
committed
bump 0.3.9
1 parent 464bd88 commit c352d95

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/ScrollLink.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)