diff --git a/yadc/assets/js/taginput.js b/yadc/assets/js/taginput.js index 7ab3694..81d6145 100644 --- a/yadc/assets/js/taginput.js +++ b/yadc/assets/js/taginput.js @@ -101,6 +101,8 @@ taginputs.forEach(function (tinput) { newtag.addEventListener('click', (event) => { remove_selected(event.target.dataset.tagname) // console.log(`Deselected: ${event.target.dataset.tagname}`) + + setTimeout(() => suggest_input.focus(), 2) }) sel.appendChild(newtag) @@ -128,6 +130,8 @@ taginputs.forEach(function (tinput) { element.addEventListener('click', (event) => { add_selected(event.target.dataset.tagname) event.preventDefault() + + setTimeout(() => suggest_input.focus(), 2) }) }) } diff --git a/yadc/static/all.js b/yadc/static/all.js index 8dd5ae6..553f8b4 100644 --- a/yadc/static/all.js +++ b/yadc/static/all.js @@ -158,6 +158,8 @@ taginputs.forEach(function (tinput) { newtag.addEventListener('click', (event) => { remove_selected(event.target.dataset.tagname) // console.log(`Deselected: ${event.target.dataset.tagname}`) + + setTimeout(() => suggest_input.focus(), 2) }) sel.appendChild(newtag) @@ -185,6 +187,8 @@ taginputs.forEach(function (tinput) { element.addEventListener('click', (event) => { add_selected(event.target.dataset.tagname) event.preventDefault() + + setTimeout(() => suggest_input.focus(), 2) }) }) }