Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with drag and drop with more than one instance #1317

Open
fagarmar opened this issue Nov 11, 2024 · 1 comment
Open

Problem with drag and drop with more than one instance #1317

fagarmar opened this issue Nov 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fagarmar
Copy link

Describe the Bug

When I have more than one instance of the form editor, when I drag an element it will show like i'm dragging more than one element and then when a drop it even though it does the task correctly it will show and error in the console log.

In the video I show how when i only have one form editor it works correctly but when i add another one the drag and drop visualizes as if i'm dropping 2 elements and then gives an error.

form-editor.error.mp4

Steps to Reproduce

Just have more than one instance of form editor and try to drag an drop an element to the editor.

Expected Behavior

I expect the instances to run separately from each other like bpmn-js does.

Environment

  • Google Chrome Versión 130.0.6723.117
  • OS: Windows 11 Pro
  • Library version: @bpmn-io/form-js: 1.11.3
@fagarmar fagarmar added the bug Something isn't working label Nov 11, 2024
@fagarmar
Copy link
Author

I solved the problem destroying the instance when the tab is not active and initializing again when it is active, it seems to have a problem when importing 2 or more different schemas ( even though they have different ids) I hope that could be fixed in the future :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant