Skip to content
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

When the a-typography-link component is copyable, add the @click event, and the content part click event will also be triggered when copying #5752

Closed
1 task done
atom-git opened this issue Jun 27, 2022 · 2 comments
Labels

Comments

@atom-git
Copy link
Contributor

atom-git commented Jun 27, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.6

Environment

MACOS12.4 WINDOWSEDGE 103

Reproduction link

Edit on CodeSandbox

Steps to reproduce

<a-typography-link
@click="handleClick"
:ellipsis="true"
content=" Ant Design Vue (copyable Link)Ant Design Vue (copyable Link)Ant Design Vue(copyable Link)Ant"
underline
copyable

<template #copyableIcon="{ copied }">



是否自定义copy按钮,在a-typography-link组件中增加@click响应均会出现copy点击也会触发内容部分click的情况

What is expected?

copy expand edit等按钮点击不触发typography内容部分自定义的click事件

What is actually happening?

copy expand edit等按钮点击触发typography内容部分自定义的click事件

@github-actions github-actions bot changed the title a-typography-link组件copyable时,增加@click事件,复制时也会触发内容部分click事件 When the a-typography-link component is copyable, add the @click event, and the content part click event will also be triggered when copying Jun 27, 2022
@tangjinzhou
Copy link
Member

ref #5746

@github-actions
Copy link

This issue 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 Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants