@esportsplus/ui 0.20.2 → 0.20.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.
@@ -1,4 +1,4 @@
1
- import { reactive } from '@esportsplus/reactivity';
1
+ import { reactive, root } from '@esportsplus/reactivity';
2
2
  import { html } from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import form from '../../components/form/index.js';
@@ -52,7 +52,7 @@ const range = template.factory(function (attributes, content) {
52
52
  state.value = Number(e.target.value);
53
53
  }}
54
54
  type='range'
55
- value='${a.value || state.value || 0}'
55
+ value='${root(() => a.value || state.value || 0)}'
56
56
  ${a}
57
57
  >
58
58
  ${content}
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.20.2",
51
+ "version": "0.20.3",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -1,4 +1,4 @@
1
- import { reactive } from '@esportsplus/reactivity';
1
+ import { reactive, root } from '@esportsplus/reactivity';
2
2
  import { html, type Attributes, type Renderable } from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import form from '~/components/form';
@@ -79,7 +79,7 @@ const range = template.factory(
79
79
  state.value = Number((e.target as HTMLInputElement).value);
80
80
  }}
81
81
  type='range'
82
- value='${(a.value as number) || state.value || 0}'
82
+ value='${root(() => (a.value as number) || state.value || 0)}'
83
83
  ${a}
84
84
  >
85
85
  ${content}