Skip to content

An exception occurs when node data key has ',' or '|' and some areas cannot be dragged  #336

Description

@rni-l

Hi, I have two questions.

Version: 0.0.54.

First:

An exception occurs when the node data key has ',' or '|'.

code:

editor.import(drawflow: {
          Home: {
            data: {
              1: {
                id: 1,
                name: "welcome",
                data: {
                  test: {
                    "aaa,a": "1",
                    "aaa|a": "1",
                  },
                },
                class: "welcome",
                html: '<div>test</div>',
                typenode: false,
                inputs: {},
                outputs: {},
                pos_x: 50,
                pos_y: 50,
              },
            },
          },
        },)

Second:

If the root dom has class, the outside of '.drawflow' cannot be dragged.

I think it was caused by here:

image

In this demo, it will be reproduced.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions