You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I receive TypeError: this.componentRef.current.addEventListener is not a function when attempting the Unmanaged Example from the Readme while using React 16.5.
Hi @zrisher
Good point, I forgot about wrapped React components.
I will fix it and release a new version, in the meantime version 1.4.1 still uses the old findDOMNode method and should work just fine.
I receive
TypeError: this.componentRef.current.addEventListener is not a function
when attempting the Unmanaged Example from the Readme while using React 16.5.The error is thrown from
panAndZoomHoc.tsx#L75
Using Chrome debugger, it appears
this.componentRef.current
returns the component itself and not a DOM reference:Purportedly we're supposed to use
ReactDOM.findDOMNode(component)
to get the DOM reference from a component.The text was updated successfully, but these errors were encountered: