antvis/G2

Legend interactions do not function properly when the json key has a '.' in the text #4053

ThamaluM posted onGitHub

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

https://github.com/ThamaluM/g2_legend_issue_minimal/blob/main/legend_issue.html

Steps to reproduce

  1. Open the HTML file in the browser.
  2. Click on a legend item to deselect it
  3. Click on another legend item to deselect it too.
  4. 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

  1. This happens when the JSON key corresponding to the legend has a '.' in it.
  2. The '.' in JSON keys works fine except for this issue in the legend.

<!-- generated by antv-issue-helper. DO NOT REMOVE -->


Sorry, due to problems in the program's architecture design, we are unable to effectively fix the issues. But it fixed in G2 5.0, you can have a try.

posted by hustcc over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests