Prevent propagation show and hide events of Modal and Collapse