fix(macModal): Fixed not able to close modal when clicking on overlay