-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error with onBlur in empty Typeahead #5736
Comments
same issue. |
I am having the same issue. I created a minimal stackblitz using the docs to reproduce the issue: Use the same steps as mentioned above to reproduce the issue. |
Fix error thrown on blur before input is given Closes valor-software#5736
Is there more news on this bug? |
I'm facing the same issue. Is there any temporary workaround for this until the fix is merged? |
Fix error thrown on blur before input is given Closes #5736
Thanks @daniloff200 |
Does anybody know when new package version will be available? |
Same issue, any update? |
Any idea on when this will be fixed? |
Should be available in 6.0.0, please, check |
✓ It works for me with 6.0.0 |
Hi,
my browser console points me to an error when I focus and unfocus a Typeahead input field without typing anything into it.
This is repoducable with all example inputs at the official docs page:
https://valor-software.com/ngx-bootstrap/#/typeahead
Repro steps:
In Chrome:
In Firefox:
The error occures while trying to read the length of the undefined
_matches
array in theonBlur
method of the typeaead:ngx-bootstrap/src/typeahead/typeahead.directive.ts
Line 306 in 6047bce
The same problem occurs with an asnyc typeahead when the user enters something into the input and blurs the input immediately without waiting for the results list.
Fortunately, the user does not see any error and the typeahead does not stop working at all. But console errors can be a problem in applidations when the client errors are sent to a backend.
Versions: (same as the offical docs at 2020/03/30)
The text was updated successfully, but these errors were encountered: