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> </Popconfirm>
, mountNode); , mountNode);
```` ````

View File

@ -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}