antvis/G6

【V5】tooltip 移出节点后未隐藏 #5995

MusicTen posted onGitHub

Describe the bug / 问题描述

存在 combo 时,设置 enable 判断 node 时启用 tooltip。鼠标移入能展示,移出时未主动隐藏。

https://stackblitz.com/edit/react-djypq8?file=index.js

Steps to Reproduce the Bug or Issue / 重现步骤

1.data

设置 combos 数据

2.plugins

判断节点启用 tooltip,enable: (event) => event.targetType === 'node'

3.复现问题

鼠标移入展示 tooltip,移出时未主动隐藏

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明


enable: (event) =>
        event.targetType === 'node' || event.targetType === 'canvas'
posted by Aarebecca 10 months ago
enable: (event) =>
        event.targetType === 'node' || event.targetType === 'canvas'

这样只能解决鼠标移入空白画布时,tooltip被隐藏,在鼠标移出node在combo内部时,tooltip依旧还展示

posted by MusicTen 10 months ago
enable: (event) =>
        event.targetType === 'node' || event.targetType === 'canvas'

这样只能解决鼠标移入空白画布时,tooltip被隐藏,在鼠标移出node在combo内部时,tooltip依旧还展示

遇到同样的问题,解决了吗

posted by lhuazai 8 months ago

加1 解决了吗

posted by lessonli 5 months ago

Fund this Issue

$0.00
Funded

Pull requests