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

Charts are broken on mobile when no x focus grid is shown #1306

Closed
stof opened this issue Apr 6, 2020 · 3 comments
Closed

Charts are broken on mobile when no x focus grid is shown #1306

stof opened this issue Apr 6, 2020 · 3 comments

Comments

@stof
Copy link
Contributor

stof commented Apr 6, 2020

Description

The code at

const d = $$.grid.select(`line.${CLASS.xgridFocus}`).datum();
calls .datum() on a d3 selection, while this selection can be empty. Calling this method on an empty selection triggers a TypeError by accessing a property on null.

Steps to check or reproduce

This happens when grid.focus.show is set to false in options of a line chart. It only affects touch devices.

@stof
Copy link
Contributor Author

stof commented Apr 6, 2020

I'm using version 1.12.1

@netil netil added the bug label Apr 7, 2020
@netil
Copy link
Member

netil commented Apr 7, 2020

@stof thanks for the report.

@netil netil closed this as completed in be61198 Apr 7, 2020
netil pushed a commit that referenced this issue Apr 9, 2020
## [1.12.3](1.12.2...1.12.3) (2020-04-09)

### Bug Fixes

* **grid:** Fix possible error when grid.focus.show set false ([be61198](be61198)), closes [#1306](#1306)
@netil
Copy link
Member

netil commented Apr 9, 2020

🎉 This issue has been resolved in version 1.12.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@netil netil added the released label Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants