Otherwise the custom event will be dispatched in the same tick as the click event. It sometimes lead to strange behavior when someone else listen click events on the document in the bubbling phase and the component may have removed itself from the dom.