Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IdsBarChart: Legend acts as an URL with selectable attribute set as true #2494

Closed
Rajarajeshwari14 opened this issue Jun 24, 2024 · 2 comments · Fixed by #2825
Closed

IdsBarChart: Legend acts as an URL with selectable attribute set as true #2494

Rajarajeshwari14 opened this issue Jun 24, 2024 · 2 comments · Fixed by #2825
Labels
Process Intelligence / Data Fabric / AI type: bug 🐛 Something isn't working [2] Velocity rating (Fibonacci)

Comments

@Rajarajeshwari14
Copy link

Problem

While setting the selectable attribute in a bar (/any other) chart, the legend icon acts as a URL.

Setting up the chart selectable attribute to false (or adding pointer-events : none for the anchor tag in DOM) prevents the chart legend from acting as a URL but does not retain the highlight effect on clicking each of the chart slices.

To Reproduce

  1. Go to 'main.wc.design/bar-chart-selectable-example'
  2. Click on the text 'Component A'. You will notice the selectable works fine. The URL looks the same.
  3. Click on the blue square icon which is left of the text of 'Component A'. (Even while hovering you will notice a new URL).
  4. You will notice the URL changes to 'https://main.wc.design.infor.com/ids-bar-chart/selectable.html#legend-component-a'
  5. This is causing problems in our application where it appends some legend on our home page as "http://my-application/#legendA" which is redirected to a blank page.

Expected behavior
Clicking the legend should not redirect the page but highlighting chart slices should work as it is.

Version
ids-enterprise-wc - 1.0.0

Screenshots
(You can notice the legend appended in the URL)
image

@tmcconechy tmcconechy added type: bug 🐛 Something isn't working [2] Velocity rating (Fibonacci) [3] Velocity rating (Fibonacci) and removed [3] Velocity rating (Fibonacci) labels Jun 25, 2024
@tmcconechy
Copy link
Member

@Rajarajeshwari14 what team is this for?

@Rajarajeshwari14
Copy link
Author

@tmcconechy Its Process Intelligence

gurov pushed a commit to gurov/enterprise-wc that referenced this issue Sep 12, 2024
gurov pushed a commit to gurov/enterprise-wc that referenced this issue Sep 12, 2024
gurov pushed a commit to gurov/enterprise-wc that referenced this issue Sep 12, 2024
gurov pushed a commit to gurov/enterprise-wc that referenced this issue Sep 12, 2024
gurov pushed a commit to gurov/enterprise-wc that referenced this issue Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Process Intelligence / Data Fabric / AI type: bug 🐛 Something isn't working [2] Velocity rating (Fibonacci)
2 participants