ant-design-vue
ant-design-vue copied to clipboard
Detach copyable button action, no longer bubble to parent component #5746
This is a ...
Bug fix
What's the background?
typography 组件中copy按钮事件冒泡至整个文本,导致如果在文本上自定义点击响应时,触发重复的问题
API Realization (Optional if not new feature)
function onCopyClick(e: MouseEvent) { e.preventDefault(); e.stopPropagation(); } onCopyClick中阻止事件冒泡
What's the effect? (Optional if not new feature)
仅影响当前组件,无破坏性更新
If this PR related with other PR or following info. You can type here.
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days