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

Tooltip cannot be displayed #5714

Closed
1 task done
BeADre opened this issue Jun 15, 2022 · 3 comments · Fixed by #5724
Closed
1 task done

Tooltip cannot be displayed #5714

BeADre opened this issue Jun 15, 2022 · 3 comments · Fixed by #5724
Labels

Comments

@BeADre
Copy link

BeADre commented Jun 15, 2022

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

Version

3.2.6

Environment

macos: 10.15; chrome: 102; vue: 3.2.36

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Tooltip cannot be displayed when the Upload component is default slot

What is expected?

Tooltip can be displayed

What is actually happening?

Tooltip cannot be displayed


View the source code and find that rcUploadProps in the Upload.tsx file does not receive attrs, I hope it can help

techbirds added a commit to techbirds/ant-design-vue that referenced this issue Jun 16, 2022
…the upload component because attrs were not transparently transmitted could not take effect. At the same time run the unit tests that passed upload and the two snapshot updates. vueComponent#5714
@tangjinzhou
Copy link
Member

you can use like

<template>
  <a-tooltip>
    <template #title>prompt text</template>
    <div>
    <a-upload>
      <a-button> Click to Upload </a-button>
    </a-upload>
    </div>
  </a-tooltip>
</template>

@BeADre
Copy link
Author

BeADre commented Jun 17, 2022

thanks

@BeADre BeADre closed this as completed Jun 17, 2022
techbirds added a commit to techbirds/ant-design-vue that referenced this issue Jun 18, 2022
…cause the attrs were not transparently transmitted, and eliminated the impact of the style being transparently transmitted again. Thanks @tangjinzhou for the reminder. Runs all unit tests that pass. vueComponent#5714
tangjinzhou pushed a commit that referenced this issue Jun 18, 2022
@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 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants