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
|
-
//
|
|
98
|
-
|
|
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();
|