mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
Fix(Popconfirm): confirm and cancel not trigger onVisibleChange
This commit is contained in:
parent
d393f496ff
commit
38baf0ef19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user