@fy-/fws-vue 0.3.41 → 0.3.42

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.
@@ -31,7 +31,7 @@
31
31
  ref="textInput"
32
32
  @input="handleInput"
33
33
  @paste.prevent="handlePaste"
34
- @keydown="handleKeydown"
34
+ @keydown.prevent="handleKeydown"
35
35
  placeholder="Add a tag..."
36
36
  ></div>
37
37
  </div>
@@ -130,11 +130,7 @@ const handlePaste = (e: any) => {
130
130
  const handleKeydown = (event: KeyboardEvent) => {
131
131
  if (!textInput.value) return;
132
132
 
133
- // Handles backspace when there is no separator involved
134
133
  if (event.key === "Backspace" && textInput.value.innerText) {
135
- // Prevent default to stop any default backspace behavior
136
- event.preventDefault();
137
- // Remove last character
138
134
  textInput.value.innerText = textInput.value.innerText.slice(0, -1);
139
135
  }
140
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.3.41",
3
+ "version": "0.3.42",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {