mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix nested Popconfirm, close #977
This commit is contained in:
parent
151708910e
commit
588914ecd7
@ -23,4 +23,3 @@ ReactDOM.render(
|
|||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
, mountNode);
|
, mountNode);
|
||||||
````
|
````
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ export default React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const { title, okText, cancelText, placement, overlayStyle, trigger } = this.props;
|
const { title, okText, cancelText, placement, overlayStyle, trigger, ...restProps } = this.props;
|
||||||
const overlay = (
|
const overlay = (
|
||||||
<div>
|
<div>
|
||||||
<div className={prefixCls + '-content'}>
|
<div className={prefixCls + '-content'}>
|
||||||
@ -81,7 +81,7 @@ export default React.createClass({
|
|||||||
const transitionName = transitionNames[placement];
|
const transitionName = transitionNames[placement];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip placement={placement}
|
<Tooltip {...restProps} placement={placement}
|
||||||
overlayStyle={overlayStyle}
|
overlayStyle={overlayStyle}
|
||||||
prefixCls={prefixCls}
|
prefixCls={prefixCls}
|
||||||
onVisibleChange={this.onVisibleChange}
|
onVisibleChange={this.onVisibleChange}
|
||||||
|
Loading…
Reference in New Issue
Block a user