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

Message Component 的 onLinkClick 是否有bug? #1443

Closed
lilj opened this issue Jun 10, 2024 · 2 comments
Closed

Message Component 的 onLinkClick 是否有bug? #1443

lilj opened this issue Jun 10, 2024 · 2 comments
Labels
question Further information is requested

Comments

@lilj
Copy link

lilj commented Jun 10, 2024

props.onLinkClick?.({ e });

为何不是 props.onLinkClick?.(e);

Copy link
Contributor

👋 @lilj,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Jun 14, 2024

@lilj props.onLinkClick?.({ e }); 是正确的,和文档中的TS 类型(context: { e: MouseEvent }) => void 是匹配的哈

@anlyyao anlyyao added the question Further information is requested label Jun 14, 2024
@anlyyao anlyyao closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants