Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

md-autocomplete: $scope.textChange is not a function #3388

Closed
norkunas opened this issue Jun 22, 2015 · 14 comments
Closed

md-autocomplete: $scope.textChange is not a function #3388

norkunas opened this issue Jun 22, 2015 · 14 comments
Assignees
Milestone

Comments

@norkunas
Copy link
Contributor

I use md-chips with md-autocomplete and I get this error.
Codepen http://codepen.io/anon/pen/warZPb
Angular 1.4.1 and Angular material 0.10.0

Code in codepen is only partial but it reproduces this error.

Also i don't understand why the second input get's the focus if i don't use md-autofocus.
And when clicking outside the chips container it still has focus.

If this because of main error?

@gkalpak
Copy link
Member

gkalpak commented Jun 22, 2015

This is due to a recent change in Angular and has been fixed with 62f5c7b. Working on latest build
In the mean-time, you could work-around the issue by specifying md-search-text-change="null" on your autocomplete.

@norkunas
Copy link
Contributor Author

@gkalpak thanks. Additionaly maybe do you know something about my other questions?

@gkalpak
Copy link
Member

gkalpak commented Jun 22, 2015

@norkunas, nope :)

@09star
Copy link

09star commented Jul 7, 2015

@gkalpak hi , I use md-contact-chips , come up with the same error. I put md-search-text-change="null" in the md-contact-chips directive while the error still exist . Did I do something wrong ? any help ? thank you.

@gkalpak
Copy link
Member

gkalpak commented Jul 7, 2015

@09star, could you provide a live demo (e.g. using CodePen) ?

@09star
Copy link

09star commented Jul 8, 2015

@gkalpak I changed the demo from Anuglar Material
just change the angular and angular animate version to 1.4.1 , then open developer tools of broswer the $scope.textChange is not a function error exist . codepen demo here :)

@ThomasBurleson ThomasBurleson modified the milestones: 0.10.1, 0.11.0 Jul 8, 2015
@gkalpak
Copy link
Member

gkalpak commented Jul 8, 2015

@09star, I can't reproduce the error with your demo.
Can you provide a demo that reproduces the error (i.e. it has md-search-text-change="null" and still the error is logged in the console) ?

@boneskull
Copy link

👍

@hitigon
Copy link

hitigon commented Jul 9, 2015

found the same error under Angular 1.4.2

@robinsving
Copy link

@gkalpak, the demo that @09star provided had no md-autocomplete. Where are you adding the md-search-text-change="null" to make his demo work?

Also, I have the same problem with Angular 1.4.2, so +1

@norkunas
Copy link
Contributor Author

@robinsving md-contact-chips uses autocomplete internally, if you want to workaround this, use decorator to override default template and add these manually md-selected-item-change="null" md-search-text-change="null"

@robinsving
Copy link

@norkunas That seems to work. Thank you

@sookyeomKim
Copy link

@gkalpak thanks for comment!!

@robertmesserle
Copy link
Contributor

This is resolved in 0.10.1-rc1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants