I have a modal sitting in the same component as the chart. My intention is when I click a datapoint on the chart I can open the modal and fetch details related to that point. This will occur upon the modal showing. The problem is that it looks like the chart is causing a re-render on the modal to happen. Inside the headless ui dialog component of the modal it's onClose gets called during this re-render and auto closes the modal mid render. When removing the chart and throwing a button in to simulate, the issue goes away. I have been using this same modal component for about 8 months with no issues like this. Unfortunately I don't see any like issues on headless ui's github. I'm leaning towards me having done something dumb that I haven't picked out yet, so any fresh eyes would be great. See the below link for the reproduced issue.