-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
JS Error using numbers in query #881
Comments
I'm having trouble reproducing this, would it be possible for you to create a jsbin? |
i fix this here
|
Do you ever call |
Yes, i call it |
Ah, ok. My guess as to what's going on is that you pass a number to |
Added a fix for v0.10.3. Thanks for helping me debug. |
Still have this issue on v0.10.5. |
also here on v0.10.5 with the following message: Uncaught TypeError: undefined is not a function typeahead.bundle.js:998
c.normalizeQuery typeahead.bundle.js:998
e typeahead.bundle.js:1146
b.mixin._checkInputValue typeahead.bundle.js:1052
b.mixin._onInput typeahead.bundle.js:1016
_.isFunction.e jquery.js:513
_.event.dispatch jquery.js:4409
q.handle jquery.js:4095 |
I also got this on v0.10.5 but was able to trace it to the fact that my data source was returning a single length array of strings. e.g. [{"value":["Blood"]},{"value":["Blame"]}] The Fixing my data source to this resolved my problem [{"value":"Blood"},{"value":"Blame"}] Perhaps |
I can verify deancsmith solution. I also had an int, and changing that to a string solved it. Using v0.10.5. |
I'm using typeahead.js 0.10.2
If i have a field with numbers to autocomplete i have strange problem.
First time it's ok. I input numbers, suggestions shown, i select something from dropdown.
But if i remove everything in the field and try to type again, i have error in console and no dropdown shown.
The text was updated successfully, but these errors were encountered: