fix nested Popconfirm, close #977

This commit is contained in:
afc163 2016-02-02 11:52:00 +08:00
parent 151708910e
commit 588914ecd7
2 changed files with 2 additions and 3 deletions

View File

@ -23,4 +23,3 @@ ReactDOM.render(
</Popconfirm>
, mountNode);
````

View File

@ -62,7 +62,7 @@ export default React.createClass({
}
},
render() {
const { title, okText, cancelText, placement, overlayStyle, trigger } = this.props;
const { title, okText, cancelText, placement, overlayStyle, trigger, ...restProps } = this.props;
const overlay = (
<div>
<div className={prefixCls + '-content'}>
@ -81,7 +81,7 @@ export default React.createClass({
const transitionName = transitionNames[placement];
return (
<Tooltip placement={placement}
<Tooltip {...restProps} placement={placement}
overlayStyle={overlayStyle}
prefixCls={prefixCls}
onVisibleChange={this.onVisibleChange}