[Bug] Hide Tooltip when click on tooltip (with touch)
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.3.0
### Link to Minimal Reproduction
https://codepen.io/strassenschild/pen/WNXQKQL
### Steps to Reproduce
1. open the codepen link
2. switch to mobile if not already on it (I do it by opening the dev console in chrome and activate mobile, so touch events work)
3. click on a bar in the chart
4. click on the tooltip
### Current Behavior
The tooltip is not hidden.
### Expected Behavior
The tooltip will be hidden.
### Environment
```markdown
- OS: Linux
- Browser: Chrome
- Framework: see codepen
```
### Any additional comments?
I want to implement "hide tooltip when clicking on it" ... this may even be a nice feature for echarts tooltips in general. But I didn't find an option for it.
So I do it by handling the click on the chart element (this is actually a hack as well, the touch/click events are not propagated downwards to the tooltip element) and then triggering the hidetip action.
But it doesn't hide it.
Contributor guide
Assessment
This issue has not been assessed yet.