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 -1 bug in selection event #187

Merged
merged 1 commit into from
Feb 23, 2019
Merged

Fix -1 bug in selection event #187

merged 1 commit into from
Feb 23, 2019

Conversation

scottsfarley93
Copy link

Fixes a small bug related to #99 and tristen/suggestions#13 (causing result selection events to be emitted twice). One of these events will record the selected index as -1 while the other will record the actual index of the selection meaning our exisiting deduplication strategy did not work.

We should fix the upstream issue soon, however, this will fix the specific problem of having -1 resultIndex's in the events produced by the MapboxEventsManager.

@andrewharvey andrewharvey self-requested a review February 22, 2019 00:01
Copy link
Collaborator

@andrewharvey andrewharvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the logic here, but will trust you on it!

@scottsfarley93 scottsfarley93 merged commit 17f2818 into master Feb 23, 2019
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.

2 participants