Skip to content

Menu 折叠时,MenuItem未指定 title或内容为空,仍然会有空的 tooltip #2526

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
tomgao365 opened this issue Jul 6, 2020 · 1 comment · Fixed by #2528
Closed
1 task done
Labels

Comments

@tomgao365
Copy link
Contributor

tomgao365 commented Jul 6, 2020

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

Version

1.6.3

Environment

Chrome 83
windows 10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

      <a-menu-item key="1">
        <a-icon type="pie-chart"/>
        <!-- <span>Option 1</span> -->
      </a-menu-item>
      <a-menu-item key="2" :title="false">
        <a-icon type="desktop"/>
        <span>Option 2</span>
      </a-menu-item>

What is expected?

当菜单折叠时不应该显示 tooltip

const tooltipProps = {

What is actually happening?

仍然有tooltip
1.title 设置为 false,null,有内容;显示 Option 2 为 tooltip
1.title 设置为 false,null,无内容;显示空的 tooltip

@github-actions
Copy link

github-actions bot commented Jul 8, 2021

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 Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant