Open choxi opened 6 years ago
I believe I've found a possible work-around for now.
You will need to add the following method to your nested React component:
addEventListener(type, handler, useCapture) {
this.el.addEventListener(type, handler, useCapture);
}
and make sure to add the ref to the nested component's root element:
ref={el => this.el = el}
I haven't tested it thoroughly, but it's working for me so far.
@storrdev You can just put a div between Hammer and the React component, see here: https://github.com/mosch/react-avatar-editor/issues/132
I'm trying to nest another React component within the Hammer component:
... and I get this error:
It works fine unless I use another React component inside of
<Hammer>
.