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

🐛[BUG] actionsRender特殊场景下点击事件无效 #330

Closed
qq382724935 opened this issue Oct 30, 2024 · 0 comments
Closed

🐛[BUG] actionsRender特殊场景下点击事件无效 #330

qq382724935 opened this issue Oct 30, 2024 · 0 comments

Comments

@qq382724935
Copy link

qq382724935 commented Oct 30, 2024

🐛 bug 描述

当我在actionsRender中外层添加一个div并且设置className时候,button按钮的点击事件无效,不添加className时候有效?

📷 复现步骤

chatItemRenderConfig={{
actionsRender: (props, dom, actionsProps) => {
return


<Button
type="default"
onClick={() => {
console.log(">>>>");
confirmOrder(content);
}}
>
确认

;
}
}}

🏞 期望结果

💻 复现代码

可复现 demo

© 版本信息

  • @ant-design/pro-chat 版本: [e.g. 1.15.3]
  • 浏览器环境 版本 130.0.6723.70(正式版本) (x86_64)
  • 开发环境 [e.g. mac OS] Sonoma 14.2.1

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant