antvis / antvis/F2

unexpected switching diagram

Open
#817 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
637
PR merge metrics
No merged PRs in 30d

Description

- [ ] I have searched the [issues](https://github.com/antvis/f2/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/great-wildflower-x32j5)

### Steps to reproduce
view the diagram in mobile or chorme opening devtool and click the icon of toggling device toolbar,
and click the avg button to render the first diagram ,and then click the detail button to render the second diagram ,and then click the avg button , and then click somewhere where the tootip of the second diagram placed, and then u will find the first diagram will be switched to the second diagram , and u click the grap between two items of the tooltip of the second diagram , and the second diagram will be switched the first diagram

### What is expected?
i hope when i click the diagram ,it will be switched unexpected

### What is actually happening?
it was switched unexpected

| Environment | Info |
|---|---|
| f2 | 3.6.3 |
| System | android 9 (MIUI 10.3.6) |
| Browser | Chrome Dev 83 |

---
also i use two different container to contain the canvas , and there the bug is still

Contributor guide

Open the contributing guide

Research direction

Open the linked CodeSandbox reproduction in mobile Chrome or Chrome DevTools device mode. Reproduce the avg/detail sequence and click the second diagram's tooltip area and the gap between tooltip items; done means clicking one diagram no longer unexpectedly switches it to the other, including when separate canvas containers are used.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.