@koumoul/vjsf 3.23.2 → 3.23.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koumoul/vjsf",
3
- "version": "3.23.2",
3
+ "version": "3.23.3",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test-tz1": "TZ=Europe/Paris vitest run",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@json-layout/core": "~2.2.1",
76
- "@json-layout/vocabulary": "~2.9.0",
76
+ "@json-layout/vocabulary": "~2.9.3",
77
77
  "@vueuse/core": "^12.5.0",
78
78
  "debug": "^4.3.4"
79
79
  },
@@ -27,7 +27,11 @@ export default defineComponent({
27
27
  const fullProps = computed(() => {
28
28
  const fullProps = { ...inputProps.value }
29
29
  fullProps.modelValue = localData.value
30
- fullProps['onUpdate:modelValue'] = (/** @type string */value) => props.statefulLayout.input(props.modelValue, value && Number(value))
30
+ fullProps['onUpdate:modelValue'] = (/** @type string */value) => {
31
+ const newData = value && Number(value)
32
+ localData.value = newData
33
+ props.statefulLayout.input(props.modelValue, newData)
34
+ }
31
35
  return fullProps
32
36
  })
33
37