flowbite-svelte 1.10.2 → 1.10.3

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.
@@ -92,10 +92,10 @@
92
92
  }
93
93
  });
94
94
 
95
- // Default event handlers
96
95
  function defaultHandleInput(event: Event) {
97
- // Reset backspace flag if user starts typing again
98
- if ((value as string).length > 0) {
96
+ // Ensure value is treated as a string to safely check its length
97
+ const currentValueAsString = String(value || "");
98
+ if (currentValueAsString.length > 0) {
99
99
  backspaceUsed = false;
100
100
  }
101
101
  updateSuggestions();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "author": {