Fix ReactTransitionEvents detectEvents