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
Fix chartClick emit #1376
Conversation
Hm, fallen test. Ok, you have a test only for click, not for hover. |
any updates? |
Should be fixed in 838882c, I will release soon |
Tried with version 3.0.9 - doesn't work. |
Can you provide a reproduction stackblitz for me? |
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. |
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) |
Can you try with v3.0.10? |
Tried with v3.0.10 - the same issue. |
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... |
ok, I created a sample here https://codesandbox.io/s/billowing-pond-vq9rhn |
Hello @santam85 . Any updates regarding the issue? |
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. |
yes, you're right. I updated the rxjs version in my project to the latest and the issue has gone. Thanks! |
|
Broken since 3.0.6