Skip to content

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

@spiner2000

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

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