Skip to content

Live editor issues #22

@anjalikalsariya

Description

@anjalikalsariya

Errors

  1. When removing the field editor return error (Uncaught TypeError: Cannot read properties of undefined (reading 'children'))
  2. Show schema button not working (Nothing happened when clicked it)
  3. When dragging a field from the component then two fields are added in the editor (Added duplicate fields)

My code

import componentMapper from '@data-driven-forms/ant-component-mapper/component-mapper';
import FormTemplate from '@data-driven-forms/ant-component-mapper/form-template';
import Editor from '@data-driven-forms/editor-pro/editor';
import propertiesFields from '@data-driven-forms/editor-pro/editor/properties-fields';
import { Schema } from '@data-driven-forms/react-form-renderer';

import schema from './data2.json';

const fields = propertiesFields({ componentMapper });

console.log("fields",fields);
const FormEditorPage = () => {
  return (
    <Editor
      fields={fields}
      initialSchema={schema}
      componentMapper={componentMapper}
      FormTemplate={FormTemplate}
    />
  );
};

export default FormEditorPage;

Screen Shorts

Issue1
image

Issue2
image

Issue3
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions