Skip to content

Commit a04dc3a

Browse files
authored
Merge pull request #12 from xJkit/revert-11-master
Revert "Avoid having isShow as true after handleCancel action"
2 parents 406b99d + da1453f commit a04dc3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GoodByeProvider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ class Provider extends React.Component {
2727
};
2828

2929
handleOk = () => {
30-
this.setState({ isShow: false });
3130
this.pass(true);
31+
this.setState({ isShow: false });
3232
};
3333

3434
handleCancel = () => {
35-
this.setState({ isShow: false });
3635
this.pass(false);
36+
this.setState({ isShow: false });
3737
};
3838

3939
handlePass = bool => {
40-
this.setState({ isShow: false });
4140
this.pass(bool);
42-
};
41+
this.setState({ isShow: false });
42+
}
4343

4444
render() {
4545
const { children } = this.props;

0 commit comments

Comments
 (0)