Skip to content

Multiple Ketcher instances are not supported in Macromolecules mode #6989

Description

@NataliaLoginova

Steps to Reproduce

  1. Go to an environment with several Ketcher instances on the same page (e.g. https://rc.test.lifescience.opensource.epam.com/KetcherDemoSA/duo.html)
  2. Switch to macromolecule mode.
  3. Interact with one of the Ketcher instances

Actual behavior
Instances conflict with each other, leading to incorrect interface behavior.

Expected behavior
Each Ketcher instance works in isolation, without affecting others.

Ketcher version [e.g. v2.4.2].
v3.3.0-rc.3

Additional context
In Macromolecules mode, using multiple Ketcher instances on the same page leads to incorrect behavior: the drawn structure may appear in a different Ketcher canvas than the one currently being used.

This issue is a continuation of #6506, which describes the root cause: global window.ketcher reference shared across instances.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions