Skip to content

Bug: table-toolbar and link-toolbar elements are duplicated in the DOM #7

Description

@iamdabe

Describe the bug:
The table-toolbar and link-toolbar elements are being duplicated in the DOM during editor usage. Additionally, styles for these elements are injected at the root level and impact global styles unintentionally.

Expected behavior:

  • Only one instance of each toolbar element should exist in the DOM at any time.
  • Styles for toolbar elements should be properly scoped to avoid interfering with root/global styles.

Steps to reproduce:

  1. Open the Markdown Editor and trigger actions involving the table-toolbar and link-toolbar.
  2. Inspect the DOM and observe duplication of these elements.
  3. Review root DOM for style leakage related to toolbar styling.

Suggested fix:

  • Ensure toolbar elements are not re-rendered or duplicated.
  • Refactor styling logic to scope CSS for toolbars to avoid global application.

Additional context:
This affects editing experience and can cause layout/style conflicts when used in larger projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions