Skip to content

Search box shouldn't always use the first suggestion #1335

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

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

abarth
Copy link
Contributor

@abarth abarth commented Jan 31, 2017

When you select an item from the search box dropdown, we were processing
the event twice: once in typeahead:select and once on keydown. The
second handler was overwriting the window.location generated by the
first and always sending the user to the first suggestion even if they
had selected a different suggestion.

Fixes #1330

When you select an item from the search box dropdown, we were processing
the event twice: once in typeahead:select and once on keydown. The
second handler was overwriting the window.location generated by the
first and always sending the user to the first suggestion even if they
had selected a different suggestion.

Fixes dart-lang#1330
@googlebot googlebot added the cla: yes Google CLA check succeeded. label Jan 31, 2017
@abarth
Copy link
Contributor Author

abarth commented Jan 31, 2017

/cc @keertip @devoncarew

@abarth
Copy link
Contributor Author

abarth commented Jan 31, 2017

Not sure why Travis is mad. Seems unrelated to this patch...

@devoncarew
Copy link
Member

Some of the sdk dartdocs get inlined into the generated docs for our sample project; our build compares the committed samples docs w/ the latest output.

I'll re-gen to fix. Thanks for the patch! Merging...

@devoncarew devoncarew merged commit cda9784 into dart-lang:master Jan 31, 2017
@devoncarew
Copy link
Member

0.9.11 published -

@abarth
Copy link
Contributor Author

abarth commented Jan 31, 2017

Thanks!

@abarth abarth deleted the fix_typeahead branch January 31, 2017 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants