diff --git a/javascript/AutocompleteField.js b/javascript/AutocompleteField.js index b4c7fda..f74c4fc 100644 --- a/javascript/AutocompleteField.js +++ b/javascript/AutocompleteField.js @@ -86,6 +86,11 @@ return; $input.attr('data-loaded', 'true'); + // Prevent this field from initializing with autocomplete while focused. Required to prevent an + // accidental misfire in the jQuery UI autocomplete "change" event that occurs if: 1.) Field starts out + // with focus and 2.) You click away to remove focus. + $input.blur(); + // load autocomplete into this field $input.autocomplete({ source: source,