From 5924ca232fba4ddf049d5655f404f64aebb240ff Mon Sep 17 00:00:00 2001 From: mlnkng Date: Wed, 11 Oct 2023 13:57:13 -0700 Subject: [PATCH] Prevent addition of incomplete access points. (#1661) --- js/autocomplete.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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