ResizeObserver only works to resize element once
On click of a button, I show a chart. When the chart is first instantiated, a ResizeObserver
is set on the parent container of the chart. My application has a collapsible sidebar and when I collapse it, the chart expands to fill up the extra space as expected. However, when I reopen the sidebar, the chart does not shrink back down.