就是我点击Button之后它通过冒泡到Popconfirm触发了提示框,可是它也会触发p的ONCLICK事件,有没有办法只触发Popconfirm不触发handdle呢
<p onClick={this.handdle}>
<Popconfirm placement="topLeft" title={text} onConfirm={confirm} okText="Yes" cancelText="No">
<Button>TL</Button>
</Popconfirm>
</p>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
在confirm里面加上e.stopPropagation();