Skip to content

Tooltip 组件作用在容器组件上时,且trigger为click的时候,点击时候会闪烁,无法正常点开 #1521

@zuley

Description

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

Version

1.4.8

Environment

mac10.15.1 、谷歌78.0.3904.108、vue2.6

Reproduction link

https://www.antdv.com/components/tooltip-cn/

Steps to reproduce

组件定义

const Item = {
  methods: {
    handleclick (event) {
      this.$emit('click')
    }
  },
  render (h) {
    return (
      <div on={{ click: this.handleclick }}>
        { this.$slots.default }
      </div>
    )
  }
}

const Item2 = {
  functional: true,
  render (h, ctx) {
    return (
      <Item><template slot="default">{ ctx.scopedSlots.default() }</template></Item>
    )
  }
}

使用

<a-tooltip trigger="click">
  <template slot="title">你站的越近,看到的就越少。</template>
  <Item2>惊天魔盗团</Item2>
</a-tooltip>

What is expected?

正常使用

What is actually happening?

闪烁,无法点开

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions