Closed jwueller closed 5 months ago
This change is pretty self-explanatory. ResizeObserver accepts Element, while useResizeObserver only accepts HTMLElement. This PR widens the type to Element, so that all element types (e.g. <svg/>) can be observed too.
ResizeObserver
Element
useResizeObserver
HTMLElement
<svg/>
Fixes/Closes #306.
This change is pretty self-explanatory.
ResizeObserver
acceptsElement
, whileuseResizeObserver
only acceptsHTMLElement
. This PR widens the type toElement
, so that all element types (e.g.<svg/>
) can be observed too.Fixes/Closes #306.