formkit icon indicating copy to clipboard operation
formkit copied to clipboard

Repeater with condition and localstorage is not working

Open zgurea1 opened this issue 8 months ago • 0 comments

Reproduction

https://formkit.link/321328a685be867f955b01dbfd2a7ec0

Describe the bug

I'm encountering a TypeError: can't convert undefined to object when using a repeater field in combination with a condition and localStorage. This error appears when the component is rendered, and it seems to be related to how the stored data is rehydrated or processed conditionally.

Steps to Reproduce:

Set up a FormKit repeater with a condition on its fields.

Enable localStorage persistence.

Load the form, possibly after storing prior data.

Observe the console for the TypeError.

Image

Image

How to fix this?

Environment

• OS: Windows • Browser chrome • Version latest

zgurea1 avatar Jun 04 '25 06:06 zgurea1