From 38baf0ef1961d566aeee4f5cf99d250839142a12 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 13 Mar 2016 16:49:05 +0800 Subject: [PATCH] Fix(Popconfirm): confirm and cancel not trigger onVisibleChange --- components/popconfirm/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/popconfirm/index.jsx b/components/popconfirm/index.jsx index ad1dbb5de1..197d9bb724 100644 --- a/components/popconfirm/index.jsx +++ b/components/popconfirm/index.jsx @@ -56,12 +56,12 @@ export default React.createClass({ }, onVisibleChange(visible) { this.setVisible(visible); - this.props.onVisibleChange(visible); }, setVisible(visible) { if (!('visible' in this.props)) { this.setState({ visible }); } + this.props.onVisibleChange(visible); }, render() { const { title, okText, cancelText, placement, overlayStyle, trigger, ...restProps } = this.props;