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

google-map-marker: update if condition in _dragEventsChanged method to check for marker instead of map #7

Closed
paodb opened this issue Aug 19, 2021 · 0 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@paodb
Copy link
Member

paodb commented Aug 19, 2021

While working on GoogleMaps issue #40 I run into a JS error "Uncaught TypeError: Cannot read property '_e3' of undefined" issue when trying to add a listener for google-map-marker-dragend event. After some debugging I found that the issue is in google-map-marker.js file, in method _dragEventsChanged(). The if condition should be if(this.marker) instead of if(this.map). If marker is undefined at this point there should be no call to this._forwardEvent('dragend'); that is what is making it fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant