@hkdigital/lib-sveltekit 0.1.50 → 0.1.51

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.
@@ -43,16 +43,13 @@
43
43
  * } & { [attr: string]: any }}
44
44
  */
45
45
  let {
46
+ initialValue,
46
47
  value = $bindable(''),
47
48
 
48
49
  isValid = $bindable(true),
49
50
  isPristine = $bindable(true),
50
51
  hasFocus = $bindable(false),
51
52
 
52
- ...otherProps
53
- } = $props();
54
-
55
- let {
56
53
  // Fieldset
57
54
  base = 'px-10p pb-10p',
58
55
  borderShape = 'border-1p rounded-xs',
@@ -90,16 +87,16 @@
90
87
  validate,
91
88
 
92
89
  ...attrs
93
- } = otherProps;
90
+ } = $props();
94
91
 
95
92
  let inputRef = $state();
96
93
  let validationMessage = $state('');
97
- let initialValue = $state('');
94
+ // let initialValue = $state('');
98
95
 
99
96
  $effect(() => {
100
97
  if (!inputRef) return;
101
- initialValue = value;
102
- validateInput(inputRef, value);
98
+ validateInput(inputRef, initialValue);
99
+ value = initialValue;
103
100
  });
104
101
 
105
102
  function validateInput(input, currentValue) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.50",
3
+ "version": "0.1.51",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"