-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Uncaught (in promise) TypeError: value.toLowerCase is not a function #226
Comments
No, |
So now it looks like this const format = (value, diacritics) => {
console.log(value)
value = value.toString().toLowerCase();
return diacritics
? value
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.normalize("NFC")
: value;
}; and produces this in the console when I enter "hogn" into the autocomplete input:
|
Here's example json that the API can return. I renamed to .txt because github won't allow me to attach .json file. |
Interesting, I'll try to reproduce that error with the |
The code in the issue description will use the public REST API. You can use that to get live data if you want. |
Got it! My bad I should have made it more clear in the release notes Try changing it and let me know how it goes :) |
I modified autoComplete.js like this in io.js
Here is the console log:
I think what
format
is expecting isobject.navn
, but what it's getting isobject
.The text was updated successfully, but these errors were encountered: