LeaVerou / awesomplete

Ultra lightweight, usable, beautiful autocomplete with zero dependencies.
http://leaverou.github.io/awesomplete/
MIT License
6.97k stars 611 forks source link

Safari 11 sort error #17096

Open bradsknutson opened 6 years ago

bradsknutson commented 6 years ago

My users are reporting issues in Safari 11. When 0 or 1 result is available for autocomplete, it works. However, when more than one result is available, the following console error is logged, and no autocomplete list is displayed.

TypeError: Array.prototype.sort requires the comparsion (sic) function be a function or undefined sort (awesomplete.min.js:2:3758)

I do not get this error in any other browser that I'm currently aware of.

LeaVerou commented 6 years ago

Interesting. Can you reproduce it on the demo page? If not, could you upload a test case that reproduces it somewhere?

bradsknutson commented 6 years ago

Arg....yes the demo does work, so it's something I'm doing. This thing is a prototype and the code is kind of a mess, so don't spend too much time looking into it.....I'm sure I'll figure it out. It can be reproduced here: http://apps.emcp.com/support/?type=1 (type in a zip code like 95051 and try entering "santa" without quotes. Santa Clara should have a few results, but in Safari 11 it's not displaying for me and my testers)