Commit d218dcb5 authored by v-liguo's avatar v-liguo
Browse files

fix issue#1263

parent 917ce97f
...@@ -158,6 +158,9 @@ class Intermediate extends React.Component<IntermediateProps, IntermediateState> ...@@ -158,6 +158,9 @@ class Intermediate extends React.Component<IntermediateProps, IntermediateState>
// user not input message // user not input message
if (pointVal === '' || minVal === '') { if (pointVal === '' || minVal === '') {
alert('Please input filter message'); alert('Please input filter message');
// if (this._isMounted) {
// this.setState({ isLoadconfirmBtn: false });
// }
} else { } else {
// user not input max value // user not input max value
const position = JSON.parse(pointVal); const position = JSON.parse(pointVal);
...@@ -184,7 +187,9 @@ class Intermediate extends React.Component<IntermediateProps, IntermediateState> ...@@ -184,7 +187,9 @@ class Intermediate extends React.Component<IntermediateProps, IntermediateState>
this.setState({ filterSource: filterSource }); this.setState({ filterSource: filterSource });
} }
this.drawIntermediate(filterSource); this.drawIntermediate(filterSource);
}
const counts = this.state.clickCounts + 1; const counts = this.state.clickCounts + 1;
if (this._isMounted) {
this.setState({ isLoadconfirmBtn: false, clickCounts: counts }); this.setState({ isLoadconfirmBtn: false, clickCounts: counts });
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment