add/remove Event listener on Children
opened this issue · comments
Hi,
I loved the idea. How about to support binding the add/remove the event listeners on the root ref of the childrens?
That way, when a group of inputs below <ReactHotKeys />
can be separated from another group with another <ReactHotKeys />
, currently the Component is binding to the same global document
Thanks 🌹
Lines 24 to 29 in d48d973
Unbind automatically when the component is uninstalled.
@Attrash-Islam
Yes, I saw that. But how that related to the event isolation?
I suggested instead of binding on document to bind the event on the root ref wrapped by the component.
I can supply more examples tomorrow if needed