-
-
Notifications
You must be signed in to change notification settings - Fork 333
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
Autocomplete API change #524
Conversation
This should be ready now. |
@@ -40,6 +40,7 @@ | |||
onKeydown=(action "onKeydown") | |||
searchEnabled=(readonly searchEnabled) | |||
searchField=(readonly searchField) | |||
searchText=searchText |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great
LGTM - let's merge it. |
search text should now be tracked and initializeable. Typing after something is already selected clears selection.