Skip to content

v1.1.0

Latest
Compare
Choose a tag to compare
@dravec dravec released this 30 Aug 09:20

I have made several improvements to my fork that you might consider to accept into the official module :

I added a parameter ignoreAccents that ignores diacritics (characters like š, č, á etc) in the autocomplete suggestions. Defaults to true as it should be in my opinion.
I added a parameter matchFrom with possible values any or start, defaults to any. If start is used, the suggestions match only from the start of the string and not randomly in the middle.
I exposed the blur function, because the close() method called from outside using controller does not work in version 3 ( it worked fine in version 2) - it will not close because the input box has focus on it. So I have to use blur() and close() in order to close the dropdown. You might consider to add blur() into the close() functions but I was not sure about the consequences, so I decided only to expose the blur() function and just called it before close(). Exposing a blur() function is a good idea anyway I think.