diff --git a/public/s/js/admin.js b/public/s/js/admin.js index 37a8db4..175cce9 100644 --- a/public/s/js/admin.js +++ b/public/s/js/admin.js @@ -287,6 +287,7 @@ const flash = ({ type, msg }) => { textfield.addEventListener("keyup", async e => { if(e.key === 'Enter') { + parent.removeChild(textfield); // send let res = await fetch('/api/v2/admin/tags/' + encodeURIComponent(oldtag), { method: 'PUT', @@ -303,7 +304,7 @@ const flash = ({ type, msg }) => { switch(status) { case 200: // success, change case 201: - parent.removeChild(textfield); + //parent.removeChild(textfield); parent.insertAdjacentElement('afterbegin', old); parent.querySelector('a:last-child').style.display = ''; old.href = `/tag/${res.tag}`;