Microsoft Edge with autocomplete does not work properly
In Microsoft Edge, when the menuslect event in autocomplete triggers the "select" method, this triggers a "blur" event followed by a "change" event on the element. The result is that the selected item is not set properly at the bottom of the function.
I realize this may be an issue with Edge, but possibly consider setting the selectedItem before calling the "select" method to prevent this issue.
Specifically: within the menuselect:function()...
Move this line:
this.selectedItem = item;
to the line before this one:
if (false !== this._trigger("select", event, { item: item })) {