ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Detach copyable button action, no longer bubble to parent component #5746

Open atom-git opened this issue 2 years ago • 0 comments

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.

atom-git avatar Jul 01 '22 09:07 atom-git

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

github-actions[bot] avatar Aug 31 '22 04:08 github-actions[bot]