Skip to content

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

@tomgao365

Description

@tomgao365
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions