Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

atom-git
Copy link
Contributor

@atom-git atom-git commented Jul 1, 2022

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.

@github-actions github-actions bot changed the title 分离copyable按钮动作,不再冒泡至父级组件 #5746 Detach copyable button action, no longer bubble to parent component #5746 Jul 1, 2022
@github-actions
Copy link

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 github-actions bot added the Stale label Aug 31, 2022
@tangjinzhou tangjinzhou merged commit d48cd8e into vueComponent:main Sep 1, 2022
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants