@fy-/fws-vue 0.3.46 → 0.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -106,7 +106,16 @@ const removeLastTag = () => {
|
|
|
106
106
|
if (textInput.value.innerText === "") {
|
|
107
107
|
tags.value.pop();
|
|
108
108
|
} else {
|
|
109
|
+
const currentLength = textInput.value.innerText.length;
|
|
109
110
|
textInput.value.innerText = textInput.value.innerText.slice(0, -1);
|
|
111
|
+
|
|
112
|
+
const range = document.createRange();
|
|
113
|
+
const sel = window.getSelection();
|
|
114
|
+
range.selectNodeContents(textInput.value);
|
|
115
|
+
range.collapse(false);
|
|
116
|
+
if (!sel) return;
|
|
117
|
+
sel.removeAllRanges();
|
|
118
|
+
sel.addRange(range);
|
|
110
119
|
}
|
|
111
120
|
};
|
|
112
121
|
const focusInput = () => {
|