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

Fix chartClick emit #1376

Closed
wants to merge 1 commit into from
Closed

Fix chartClick emit #1376

wants to merge 1 commit into from

Conversation

Eugeno
Copy link
Contributor

@Eugeno Eugeno commented Jan 19, 2022

Broken since 3.0.6

@Eugeno
Copy link
Contributor Author

Eugeno commented Jan 19, 2022

Hm, fallen test. Ok, you have a test only for click, not for hover.
Since 3.0.6 onHover has this.chartHover.observed condition, but onClick has !this.chartHover.observed. Looks like something wrong here =)

@boytsovevg
Copy link

any updates?

@santam85
Copy link
Contributor

Should be fixed in 838882c, I will release soon

@santam85 santam85 closed this Mar 22, 2022
@moduld
Copy link

moduld commented Apr 29, 2022

Tried with version 3.0.9 - doesn't work.

@santam85
Copy link
Contributor

Can you provide a reproduction stackblitz for me?

@santam85 santam85 reopened this Apr 29, 2022
@santam85
Copy link
Contributor

I think I know what's going on: the event will trigger only if you hover an actual element (active needs not to be null or empty) for performance reasons. Have you tried actually hovering an element in the dataset? The event triggers correctly for me, I will add a test that demonstrates that. This PR is preventing all events to trigger when an observer is present, will close and reject.

@santam85 santam85 closed this Apr 29, 2022
@moduld
Copy link

moduld commented Apr 29, 2022

I use 'bubble' type of chart. I try to handle (chartClick) event when I click on a bubble. So the bubble is hovered at moment of click. I tried to use v3.0.5 - and the event emits properly (but the version affects changeDetection for a component where the chart is used)

@santam85
Copy link
Contributor

santam85 commented May 2, 2022

Can you try with v3.0.10?

@moduld
Copy link

moduld commented May 2, 2022

Tried with v3.0.10 - the same issue.

@santam85
Copy link
Contributor

santam85 commented May 2, 2022

Please create a repo with a reproduction example, I really can't see how this is not working for you. Is it about clicking or hovering? I am confused...

@moduld
Copy link

moduld commented May 2, 2022

ok, I created a sample here https://codesandbox.io/s/billowing-pond-vq9rhn

@moduld
Copy link

moduld commented May 10, 2022

Hello @santam85 . Any updates regarding the issue?

@santam85
Copy link
Contributor

The culpirit seems to be the outdated version odf rxjs, I tested with 7.4.0 and works fine in your example. Will double check again which minor of 6.x is needed and update peer dependencies accordingly.

@moduld
Copy link

moduld commented May 11, 2022

yes, you're right. I updated the rxjs version in my project to the latest and the issue has gone. Thanks!

@santam85
Copy link
Contributor

v3.0.11 should now also be compatible with rxjs 6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants