Skip to content

Live editor issues #22

Open
Open

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

Activity

  1. changed the title [-]In live editor, When remove selected component getting error[/-] [+]In live editor, When removing a selected component getting error[/+] on Jan 18, 2024
  2. anjalikalsariya commented on Jan 18, 2024

    @anjalikalsariya
    Author
    image image
  3. anjalikalsariya commented on Jan 18, 2024

    @anjalikalsariya
    Author

    Editor version that I am using

    "@data-driven-forms/editor-pro": "^0.0.15",

    React version : "react": "^18.2.0",

  4. changed the title [-]In live editor, When removing a selected component getting error[/-] [+]In live editor, When removing a selected component getting error and Show schema button not working[/+] on Jan 18, 2024
  5. changed the title [-]In live editor, When removing a selected component getting error and Show schema button not working[/-] [+]In live editor, Getting issues[/+] on Jan 18, 2024
  6. changed the title [-]In live editor, Getting issues[/-] [+]live editor issues[/+] on Jan 18, 2024
  7. changed the title [-]live editor issues[/-] [+]Live editor issues[/+] on Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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