-
Notifications
You must be signed in to change notification settings - Fork 6.7k
fix(typeahead): resolves property length of undefined error #2999 #3178
Conversation
@unkleara thanks for the PR. Do you think you can write a test for this? |
Opps I changed deferred.resolve(['good', 'stuff']); to deferred.resolve(['good1', 'stuff']); to make sure I was logging a correct area. Want me to change that back? Let me know any adjustments that need to be made. It can be tested other places but it makes most sense testing it within the promise since it's going through that function first. |
Yes please change it back. |
👍 I'm having the same issue. Is there any progress on this issue? I'd really appreciate it, if it could be merged. |
Is there any update on this? Also causing me issues... |
Is there a particular reason why it returns as undefined? |
There's no reason for |
- resolves property length of undefined error by checking value first angular-ui#2999 Fixes angular-ui#2999 Closes angular-ui#3178
An error is thrown that matches.length is not defined. So we check if matches is truthy first.