diff --git a/public/js/app.js b/public/js/app.js index 9e158f7..03273cf 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -63,6 +63,10 @@ document.addEventListener('alpine:init', () => { this.$refs.tags.value = mySplice(value, pos, this.query.length, tag + ' '); this.reset(); + this.inputCursor = + this.$refs.tags.selectionStart = + this.$refs.tags.selectionEnd = + pos + tag.length + 1; this.$refs.tags.focus(); // Don't switch focus if we're completing after a Tab press.