tsedio / tsed-formio

Repository dedicated to formiojs.
https://formio.tsed.io
14 stars 8 forks source link

Cannot edit the existing components #136

Open kyuukyuusheinmoe opened 1 week ago

kyuukyuusheinmoe commented 1 week ago

Information

I have created a few components in form builder. After that, I need some modifications on the components that just have been created and I do some updates. Then I tried to save and the component editor form seem cracked. In the error console, it's showing the message

image

Example

import React from 'react';
import { FormBuilder } from '@tsed/react-formio';
import { Formio, Templates } from '@tsed/react-formio';
import tailwind from '@tsed/tailwind-formio';
import { FormBuilderComponentProps } from 'src/types/form';

Formio.use(tailwind);
Templates.framework = 'tailwind';

const FormBuilder Component= ({ value, onChange }) => {
  return (
    <FormBuilder
      display={'form'}
      components={value}
      onChange={(e) => {
        onChange({ value: e });
      }}
    />
  );
};

Acceptance criteria

Romakita commented 1 week ago

@kyuukyuusheinmoe can you create a short reproducible repo example please. Your example doesn’t give me enough to start an investigation.

see you