-
Notifications
You must be signed in to change notification settings - Fork 3.4k
When multiple md-autcomplete on the same page, md-not-found doesn't work #5865
Comments
Hmm, there must be something different. Can you share your exact code with us (codepen or something like that). Then we can investigate much better. I tried to build a codepen, which shows your named issue. Everything is working fine here, please take a look at your |
Ok, it's a bit trickier, Here take a look. (of cause they're bound to the same fields, but it doesn't matter, if you put not found template in both or change the order problem disappears): |
Okay, I know how where the bug is, I will upload a fix in a few minutes... I have some connectivity problems |
As before, the `hasNotFoundTemplate` Boolean was stored in the directive function so its used by all `autocomplete` directives, and that's wrong Fixes angular#5865
As before, the `hasNotFoundTemplate` Boolean was stored in the directive function so its used by all `autocomplete` directives, and that's wrong Fixes angular#5865
i found solution. |
@KapilParam That's a solution we don't need. We wan't to remove the My PR is fixing this already. (pending for being merged) |
please check this again |
@robertmesserle - can you review the PR plz |
As before, the `hasNotFoundTemplate` Boolean was stored in the directive function so its used by all `autocomplete` directives, and that's wrong Fixes angular#5865 Closes angular#5867
I'm using rc-4 and when I have multiple md-autocomplete with one of them having md-not-found defined (as in demo) on one page, it never shows up. If I have only one md-autocomplete, I see this item in the list, it works fine.
Also it looks like on demo page you don't have such issue, but I'm using same JS code and layout.
The text was updated successfully, but these errors were encountered: