Skip to content

Commit 6a28555

Browse files
authored
Merge pull request #13 from xJkit/revert-12-revert-11-master
Revert "Revert "Avoid having isShow as true after handleCancel action""
2 parents a04dc3a + 598b1ec commit 6a28555

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.pass(true);
3130
this.setState({ isShow: false });
31+
this.pass(true);
3232
};
3333

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

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

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

0 commit comments

Comments
 (0)