93 introduced an error where once disconnect() is called on a ResizeObserver, that ResizeObserver can no longer be used to track further elements. This does not appear to be intended behavior in the spec.
This PR enables re-use of the ResizeObserver.
It also deregisters the ResizeObserver when the last element is unobserved in addition to when the ResizeObserver has disconnect() called on it.
93 introduced an error where once
disconnect()
is called on a ResizeObserver, that ResizeObserver can no longer be used to track further elements. This does not appear to be intended behavior in the spec.This PR enables re-use of the ResizeObserver.
It also deregisters the ResizeObserver when the last element is unobserved in addition to when the ResizeObserver has
disconnect()
called on it.