Detach copyable button action, no longer bubble to parent component #5746 #5769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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)
仅影响当前组件,无破坏性更新