Skip to content

The issue with render class ant-upload-drag-container in the DOM #6417

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

Closed
1 task done
Dmytro-Lukashenko opened this issue Apr 4, 2023 · 3 comments
Closed
1 task done
Labels

Comments

@Dmytro-Lukashenko
Copy link
Contributor

Dmytro-Lukashenko commented Apr 4, 2023

Hello!

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

Version

3.2.16

Environment

Windows10, Chrome Version 111.0.5563.147, ant-design-vue 3.2.16; vue-3.2.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

There is an incorrect rendering of the class "ant-upload-drag-container" in the DOM. If we use an empty tag , the empty

with class "[object Object]-drag-container" renders in the DOM.

What is expected?

The class "ant-upload-dragger-container" should be rendered in the DOM

What is actually happening?

The class "[object Object]-drag-container" renders in the DOM


This issue happens because of an error in string 397 of the Upload.tsx file.

{slots.default?.()}
prefixCls - ComputedRef, not a string. To fix this issue, we can modify the code to access the string value of the prefixCls object - prefixCls.value My suggestion:
{slots.default?.()}
@CCherry07
Copy link
Member

我来看看

@Dmytro-Lukashenko
Copy link
Contributor Author

Hi! Thanks for your comment! I think that this issue should be closed because my pull request #6413 was merged in the "main" branch

Copy link

github-actions bot commented Apr 7, 2024

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 Apr 7, 2024
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