@ederzeel/nuxt-schema-form-nightly 0.1.0-29162274.a2bef1f → 0.1.0-29162277.41a79d0

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.
@@ -184,10 +184,8 @@ const options = computed(() => {
184
184
  })
185
185
 
186
186
  const open = (index: number) => {
187
- console.log('click')
188
- console.log(values.value[index])
189
187
  if (props.setHidden) props.setHidden(true)
190
- model.value = { open: true, index: index, value: structuredClone(values.value[index]) }
188
+ model.value = { index: index, value: structuredClone(values.value[index]) }
191
189
  }
192
190
 
193
191
  const onInput = (value: Record<string, unknown>, index: number) => {
@@ -280,7 +278,7 @@ const hidden = ref(false)
280
278
  <UButton
281
279
  @click="
282
280
  () => {
283
- onInput(model.value, model.index)
281
+ if (model.value) onInput(model.value, model.index)
284
282
  if (props.setHidden) props.setHidden(false)
285
283
  model.value = undefined
286
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-29162274.a2bef1f",
3
+ "version": "0.1.0-29162277.41a79d0",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {