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 for #6614 #6615

Merged
merged 6 commits into from
May 30, 2023
Merged

Fix for #6614 #6615

merged 6 commits into from
May 30, 2023

Conversation

Domino987
Copy link
Contributor

@Domino987 Domino987 commented May 24, 2023

As written in the issue, the hover fails, if the only markers currently visible are hoverinfo: "none".

This fix returns an empty array instead of undefined in createHoverText if no points are currently shown.

Prev: if(groupedHoverData.length === 0) return; Link

Now: if(groupedHoverData.length === 0) return [];

So that var hoverLabel = hoverText.hoverLabels; does not fail.

A test for regression is also added. It fails without the given change.

@archmoj
Copy link
Contributor

archmoj commented May 30, 2023

Thanks for the PR.
Please fetch upstream/master and merge it into this branch so that the tests pass.

@archmoj archmoj added bug something broken community community contribution status: has TODOs and removed status: has TODOs labels May 30, 2023
@archmoj archmoj added the regression this used to work label May 30, 2023
@archmoj
Copy link
Contributor

archmoj commented May 30, 2023

Nicely done.

💃 [ ] 💃

@Domino987
Copy link
Contributor Author

Domino987 commented May 30, 2023

@archmoj Looks like one test still fails. I don't expect this to be connected to my change though.

@archmoj archmoj merged commit beb73eb into plotly:master May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken community community contribution regression this used to work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants