evergreen icon indicating copy to clipboard operation
evergreen copied to clipboard

Hide or Show Dialog, Instead of Closing and Removing the DOM Reference

Open martineboh opened this issue 4 years ago • 0 comments

I am creating a chart component with Plotly, and the requirment was to show a plot in a popup-like dialog, so I chose to implement this with Evergreen Dialog component instead of using window.open(). First time, the plot shows very well with animation. On close, I discovered the plot re-initialized. Is this behaviour normal? Shouldn't the Dialog hide and show with previous state and look? If NO, how do I just hide and show the Dialog content without losing DOM reference?

martineboh avatar Aug 04 '21 16:08 martineboh