@djcali570/component-lib 0.1.102 → 0.1.103

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Svelte Component library
2
2
 
3
- 0.1.102
3
+ 0.1.103
4
4
 
5
5
  - Updated Input to trigger onUpdate when cleared.
6
6
 
@@ -64,6 +64,7 @@
64
64
  let inputElement: HTMLInputElement | null = $state(null);
65
65
  let keydownHandler: (e: Event) => void = $state(() => {});
66
66
  let inputHandler: (e: Event) => void = $state(() => {});
67
+ let lastValue: string | undefined = $state(undefined);
67
68
 
68
69
  /**
69
70
  * Regex Validators
@@ -87,7 +88,12 @@
87
88
  });
88
89
 
89
90
  $effect(() => {
90
- onUpdate(value ?? '');
91
+ const current = value ?? '';
92
+
93
+ if (current !== lastValue) {
94
+ lastValue = current;
95
+ onUpdate(current);
96
+ }
91
97
  });
92
98
 
93
99
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djcali570/component-lib",
3
- "version": "0.1.102",
3
+ "version": "0.1.103",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",