Open Woet opened 2 years ago
Feel free to submit a PR if you know what is the issue.
There are a few dozen pull requests dating back for years that haven't received feedback nor have been merged, so I'm not sure if submitting a PR is useful. :)
For now, I've changed the selectHint version to the following which resolved the issue for me:
selectHint: function () {
var that = this,
i = $.inArray(that.hint, that.suggestions);
i = Object.values(that.suggestions).findIndex(suggestion => suggestion.value == that.hint.value);
that.select(i);
},
Hi,
Thanks for the great library! I've been running into some issues with onHint tabbing throwing errors and I narrowed it down to it happening whenever a custom lookup function is being used. You can find a working test case here: https://jsfiddle.net/0g8w43a1/
This code works perfectly fine:
But this one throws an error when using tab to select the hint:
And here is the actual error:
Let me know if I can help in any way.