diff --git a/js/autocomplete.js b/js/autocomplete.js index 2115053a7b..6def31da23 100644 --- a/js/autocomplete.js +++ b/js/autocomplete.js @@ -233,6 +233,9 @@ // jQuery.toggle() expects a boolean parameter $ul.toggle(!!$ul.children().length); }); + + // Remove relatedResourceForm from stack + relatedResourceForms.remove($input.data('relatedResourceForm')); }); $li.appendTo($ul); @@ -304,7 +307,7 @@ // Make autocomplete , copy @class from // so