Skip to content

ChartKit Content Disappears on Subsequent Modal Openings (Only Title Remains) #566

Open

Description

@spiner2000

Describe the bug

When embedding ChartKit within a modal component, the chart content fails to render correctly after the initial opening.
First render works as expected, but subsequent renders fail to fully mount the chart.

Reproduction

https://codesandbox.io/p/devbox/n96pcm

Steps to reproduce

  1. Open the modal containing the ChartKit component for the first time.
  2. Close the modal.
  3. Reopen the modal.
  4. Observe that only the chart title is visible; the chart itself is missing.

Expected Behavior:
The chart (including its title and visual content) should render completely every time the modal is opened.

Actual Behavior:
On subsequent openings of the modal, only the chart title remains visible. The chart visualization disappears.

Environment

Browser: Any

Validations

Activity

  1. added theissue type on Mar 6, 2025
  2. self-assigned this
    on Mar 6, 2025
  3. transferred this issue fromgravity-ui/uikiton Mar 11, 2025
  4. added theissue type on Mar 11, 2025
  5. added
    bugSomething isn't working
    on Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions