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: Sometimes index === -1 #248

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Fix: Sometimes index === -1 #248

merged 1 commit into from
Oct 30, 2019

Conversation

emilsgulbis
Copy link
Contributor

@emilsgulbis emilsgulbis commented Oct 7, 2019

Sometimes when mouse-overing container, i got vendors.app.js:8427 Uncaught TypeError: Cannot read property 'xPos' of undefined that is caused by -1 index

Explanation About What Code Achieves:
  • To disable -1 index tooltip when hovering container
Screenshots/GIFs:

Screenshot 2019-10-07 at 14 39 07

Sometimes when mouse-overing container, i got `vendors.app.js:8427 Uncaught TypeError: Cannot read property 'xPos' of undefined` that is caused by `-1` index
@coveralls
Copy link

coveralls commented Oct 7, 2019

Pull Request Test Coverage Report for Build 138

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 38.158%

Totals Coverage Status
Change from base Build 136: 0.0%
Covered Lines: 29
Relevant Lines: 62

💛 - Coveralls

@bennylut
Copy link

I am also having this issue - a workaround that I found was to disable pointer events in the relevant components:

.chart-container {
    pointer-events: none;

    .chart-draw-area {
        pointer-events: all;

        .y.axis {
            pointer-events: none;
        }

        .x.axis {
            pointer-events: all;
        }
    }
}

@scmmishra scmmishra merged commit f06d0c7 into frappe:master Oct 30, 2019
@willjosefi
Copy link

hi, is this merge didn't publish yet?
on npmjs i just can see the 1.3.0 version, which contains that bug :(
is there a way to use the updated version?

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

5 participants