pass the event to the onSelectCallback

a small patch so that the $event is also given as an argument to the onSelectCallback for the user to use