- Update `direction` param in the example for `onLeave` event.