should re register as the tabs make it unmount (#39526) (#39678)

fixes: #39509
fixes: #39499


(cherry picked from commit 4d2030017c885fbc60382d2bda66ed41be0ba59c)

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2025-05-14 19:40:34 +02:00 committed by GitHub
parent bebab54ecc
commit e9d240acb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,6 @@ export const KeyValueInput = ({
} = useFormContext();
const { fields, append, remove } = useFieldArray({
shouldUnregister: true,
control,
name,
});