awesomplete icon indicating copy to clipboard operation
awesomplete copied to clipboard

If no Results are available in the current list 'evaluate' function throws a TypeError

Open Snickbrack opened this issue 7 years ago • 2 comments

if (value.length >= this.minChars && this._list.length > 0) Line 280 in awesomplete.js

This is where the error

TypeError: this._list is undefined is thrown if no elements where found for the search parameter.

Could you please fix this with a this._list != undefined? Thx

Snickbrack avatar Feb 26 '18 21:02 Snickbrack

You have already spotted the file change, you basically have a pull request ready! It will take you like a minute to convert this to a mergeable PR via the Github UI :)

LeaVerou avatar Feb 26 '18 22:02 LeaVerou

I've created PR because I faced the same issue recently

vleontyev avatar Mar 15 '18 06:03 vleontyev