diff --git a/components/modal/confirm.tsx b/components/modal/confirm.tsx index d35adb8b85..4e30f208ac 100644 --- a/components/modal/confirm.tsx +++ b/components/modal/confirm.tsx @@ -21,13 +21,13 @@ class ActionButton extends React.Component { loading: false, }; } - componentDidMount () { + componentDidMount() { if (this.props.autoFocus) { const $this = ReactDOM.findDOMNode(this) as HTMLInputElement; this.timeoutId = setTimeout(() => $this.focus()); } } - componentWillUnmount () { + componentWillUnmount() { clearTimeout(this.timeoutId); } onClick = () => {