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

Upload 组件通过 customRequest 自定义 onError 后,error icon 被 hover 时渲染出错 #2681

Open
1 task
fazdzz opened this issue May 14, 2024 · 0 comments

Comments

@fazdzz
Copy link

fazdzz commented May 14, 2024

Basic Info

Extra info

Upload 源码中会将 UploadItem 的 reponse 传递给 Tooltip 的 content

UploadItem 中 response 的类型定义是 object

Tooltip 若 content 不是函数,会直接将 content 作为 child 渲染

What is expected?

对 hover 之后的弹窗没有需求,只希望不要报错

Steps to reproduce

  1. 上传任意文件
  2. 鼠标 hover 到红色的 error icon 上
  3. 渲染报错 Objects are not valid as a React child (found: object with keys {error}). If you meant to render a collection of children, use an array instead.
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