We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3df1147 + bf2b2a0 commit 464bd88Copy full SHA for 464bd88
src/ScrollLink.jsx
@@ -107,9 +107,11 @@ class ScrollLink extends React.Component {
107
this.props.onFocus.call(this, obj);
108
this.props.onFocus.only = true;
109
}
110
- this.setState({
111
- active: true,
112
- });
+ if (this.state.active !== true) {
+ this.setState({
+ active: true,
113
+ });
114
+ }
115
} else {
116
if (this.props.onFocus.only) {
117
const obj = {
@@ -119,9 +121,11 @@ class ScrollLink extends React.Component {
119
121
this.props.onBlur.call(this, obj);
120
122
123
this.props.onFocus.only = false;
- active: false,
124
+ if (this.state.active !== false) {
125
126
+ active: false,
127
128
129
130
131
0 commit comments