-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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) _onChange is not a function #2947
Comments
I couldn't reproduce it against master. Can you post an example that throws the error? You can use this as a base http://plnkr.co/edit/o077B6uEiiIgkC0S06dd |
@axtho It looks like you're not using any of the core form directives with your text field (these are what register an onChange function). In the initial version of autocomplete, it's only supported to use form directives like If you follow the steps in the docs here, it should work. We will be adding full support for using autocomplete without any core form directives, but that probably won't make it into the next release. In the meantime, I can submit a quick PR to fix the missing |
@kara thanks! I will use the form for the moment. It guess it comes down to design decisions. Thanks for the hint. Maybe the docs should reflect this until a permanent solution is available? Btw, great work on all this. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug:
Implementing the nightly builds creates an error (since the last major update by kara) in the underlying trigger class:
What is the expected behavior?
Entering a string in the input field should open the autocomplete panel.
What is the current behavior?
Nothing happens. Error occurs in the JS logs.
What are the steps to reproduce?
This issue appeared even when using the example given here (https://github.com/angular/material2/tree/master/src/demo-app/autocomplete).
Here is my setup:
What is the use-case or motivation for changing an existing behavior?
Use case: implementing a top search-bar
Which versions of Angular, Material, OS, browsers are affected?
@angular/cli: 1.0.0-beta.30
node: 6.9.2
os: darwin x64
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/core: 2.4.6
@angular/flex-layout: 2.0.0-beta.4
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/material: 2.0.0-beta.1 ("@angular/material": "https://github.com/angular/material2-builds.git")
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/router: 3.4.6
@angular/cli: 1.0.0-beta.30
@angular/compiler-cli: 2.4.6
@angular/platform-server: 2.4.6
TypeScript is at: 2.0.10
Build uses ng serve (ng serve --proxy-config proxy.conf.json)
Is there anything else we should know?
I realize that this is the snapshot of current development (not even in a release yet). But maybe this helps to tighten the component for certain environments.
The text was updated successfully, but these errors were encountered: