@x33025/sveltely 0.0.43 → 0.0.44

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.
@@ -203,9 +203,12 @@
203
203
  };
204
204
 
205
205
  const onBlur = () => {
206
- if (!inputValue.trim()) {
207
- showInput = false;
206
+ const nextValue = inputValue.trim();
207
+ if (nextValue) {
208
+ addTag(nextValue);
208
209
  }
210
+ inputValue = '';
211
+ showInput = false;
209
212
  };
210
213
 
211
214
  $effect(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x33025/sveltely",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",