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] Ant Design's Tooltip component not showing when used with ImportButton #6631

Open
okaeiz opened this issue Jan 4, 2025 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@okaeiz
Copy link
Contributor

okaeiz commented Jan 4, 2025

Describe the bug

I am using ExportButton, CreateButton and ImportButton and I wrap them with Ant Design's Tooltip component. When I hover over the buttons, ExportButton and CreateButton's tooltips are shown. But the ImportButton's tooltip is not shown when hovered. Here's how I am using it:

            <Tooltip title={"بارگذاری"} placement="top">
              <ImportButton
                {...importProps}
                buttonProps={{ icon: <UploadOutlined />, disabled: true}}
                uploadProps={{
                  accept: ".csv,.xls,.xlsx",
                }}
              >
                بارگذاری
              </ImportButton>
            </Tooltip>

Steps To Reproduce

  1. Create an ImportButton component.
  2. Wrap it with Ant Design's Tooltip component.
  3. Hover over the button to check if the tooltip is shown.
  4. It's not.

Expected behavior

I expect all Refine buttons to have the standard behavior when used along with antd components.

Packages

  • @refinedev/core ("^4.56.0")
  • @refinedev/antd ("^5.44.0")
  • antd ("^5.17.0")

Additional Context

This issue might be relevant to #1630.

@okaeiz okaeiz added the bug Something isn't working label Jan 4, 2025
@Samuel-Habib
Copy link

Hey I think I could figure this out, could I be assigned to this issue?

@alicanerdurmaz
Copy link
Member

Hello @Samuel-Habib, I assigned to you. Thanks for improving Refine!

@okaeiz
Copy link
Contributor Author

okaeiz commented Jan 6, 2025

@Samuel-Habib Could you please explain where the problem is? Is the implementation of Refine's ImportButton?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants