DAR-2557, another way to fix event bubbling and closing modal when clicking on blackout