@fy-/fws-vue 0.3.45 → 0.3.46
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.
|
@@ -105,6 +105,8 @@ const removeLastTag = () => {
|
|
|
105
105
|
if (!textInput.value) return;
|
|
106
106
|
if (textInput.value.innerText === "") {
|
|
107
107
|
tags.value.pop();
|
|
108
|
+
} else {
|
|
109
|
+
textInput.value.innerText = textInput.value.innerText.slice(0, -1);
|
|
108
110
|
}
|
|
109
111
|
};
|
|
110
112
|
const focusInput = () => {
|
|
@@ -124,13 +126,6 @@ const handlePaste = (e: any) => {
|
|
|
124
126
|
e.preventDefault();
|
|
125
127
|
addTag();
|
|
126
128
|
};
|
|
127
|
-
const handleKeydown = (event: KeyboardEvent) => {
|
|
128
|
-
if (!textInput.value) return;
|
|
129
|
-
|
|
130
|
-
if (event.key === "Backspace" && textInput.value.innerText) {
|
|
131
|
-
textInput.value.innerText = textInput.value.innerText.slice(0, -1);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
129
|
</script>
|
|
135
130
|
|
|
136
131
|
<style scoped>
|