G2
G2 copied to clipboard
Legend interactions do not function properly when the json key has a '.' in the text
- [x] I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
https://github.com/ThamaluM/g2_legend_issue_minimal/blob/main/legend_issue.html
Steps to reproduce
- Open the HTML file in the browser.
- Click on a legend item to deselect it
- Click on another legend item to deselect it too.
- You will notice that previously deselected items are automatically get selected.
Environment | Info |
---|---|
g2 | 4.2.5 |
System | Ubuntu 18.04.6 |
Browser | Firefox 102.0 |
- This happens when the JSON key corresponding to the legend has a '.' in it.
- The '.' in JSON keys works fine except for this issue in the legend.