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

Change behavior of autocomplete #112

Conversation

jharding
Copy link
Contributor

See #49 for details. Not 100% sure I want to ship this in v0.9.0.

@@ -253,7 +253,8 @@ var TypeaheadView = (function() {
hint = this.inputView.getHintValue();

if (hint !== '' && query !== hint) {
this.inputView.setInputValue(hint);
suggestion = this.dropdownView.getFirstSuggestion();
Copy link
Contributor

Choose a reason for hiding this comment

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

.getHighlightedOrFirstSuggestion()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The hint will always be the the first suggestion in the dropdown.

Copy link
Contributor

Choose a reason for hiding this comment

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

What if I arrow up or down?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, then it changes the value, so there's no hint. Carry on…ship it.

@timtrueman
Copy link
Contributor

I like this change, regardless of when it ships.

jharding added a commit that referenced this pull request Mar 14, 2013
@jharding jharding merged commit 6fcd112 into twitter:integration-0.9.0 Mar 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants