Tag: event.stopPropagation

event.stopPropagation();

understanding theory behind: event.preventDefault(); & event.stopPropagation();   and when you want to close popup or menu when click out side the area where popup or menu meant to be close…