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

Autocomplete API change #524

Merged

Conversation

ibarrick
Copy link
Contributor

search text should now be tracked and initializeable. Typing after something is already selected clears selection.

@ibarrick
Copy link
Contributor Author

This should be ready now.

@@ -40,6 +40,7 @@
onKeydown=(action "onKeydown")
searchEnabled=(readonly searchEnabled)
searchField=(readonly searchField)
searchText=searchText
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we be explicit here and show that's searchText is one way with readonly helper

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just added commit to fix this, should be good now.

@@ -66,11 +74,14 @@ export default Component.extend({
},

handleInputLocal(e) {
// If something is already selected when the user types, it should clear selection
if (this.get('selected')) {
this.get('select').actions.select(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it auto search or we need to call actions.search

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 onInput fires and calls search automatically.

Copy link
Contributor

Choose a reason for hiding this comment

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

Great

@xomaczar
Copy link
Contributor

LGTM - let's merge it.
cc @miguelcobain

@miguelcobain miguelcobain merged commit 374c005 into adopted-ember-addons:paper-menu Oct 17, 2016
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.

3 participants