You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with the onClickBefore callback to stop typeahead from updating the input field with the currently selected result.
I noticed that in the code right after the callback you check if I called "e.preventDefault();" by checking for e.defaultPrevented.
However, this is not correct, because "e" is not the original event, it is a jquery result, which for some stupid reason doesn't have the defaultPrevented attribute.
Easy fix. Replace e.defaultPrevented with e.isDefaultPrevented()