From 8c632ef2cf5dc9f77961236768984682f0c84dd2 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Tue, 6 Jun 2017 11:51:50 +0800 Subject: [PATCH] fix: Modal.method should stop loading when promise throw err, close: #6183 --- components/modal/ActionButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/modal/ActionButton.tsx b/components/modal/ActionButton.tsx index 674bc3be2b..e4f8ffa468 100644 --- a/components/modal/ActionButton.tsx +++ b/components/modal/ActionButton.tsx @@ -43,6 +43,9 @@ export default class ActionButton extends React.Component { + // See: https://github.com/ant-design/ant-design/issues/6183 + this.setState({ loading: false }); }); } } else {