From 94814d955fd870ea14fe030c40e7fdd93bc4a894 Mon Sep 17 00:00:00 2001 From: ztplz Date: Sun, 24 Feb 2019 15:49:12 +0800 Subject: [PATCH] Format (#15027) --- components/modal/ActionButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/modal/ActionButton.tsx b/components/modal/ActionButton.tsx index 71b79eb8d2..e60a3ed51a 100644 --- a/components/modal/ActionButton.tsx +++ b/components/modal/ActionButton.tsx @@ -24,15 +24,18 @@ export default class ActionButton extends React.Component $this.focus()); } } + componentWillUnmount() { clearTimeout(this.timeoutId); } + onClick = () => { const { actionFn, closeModal } = this.props; if (actionFn) {