Skip to content

Commit da1453f

Browse files
authored
Revert "Avoid having isShow as true after handleCancel action"
1 parent 406b99d commit da1453f

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)