Force rendering before we dispatch any event

This is so that the event path will be correct when the event is dispatched.