For some reason KeyboardEventManager uses addEventListener inside unregisterListeners method. This PR changes it to removeEventListener, so that listeners are correctly removed from elements.
Test plan
I've tested that on my branch with removing findNodeHandle, so... you can trust me since PointerEventManager uses the same logic 😄
Description
For some reason
KeyboardEventManager
usesaddEventListener
insideunregisterListeners
method. This PR changes it toremoveEventListener
, so that listeners are correctly removed from elements.Test plan
I've tested that on my branch with removing
findNodeHandle
, so... you can trust me sincePointerEventManager
uses the same logic 😄