Click on any element on the mask layer to close the mask layer. What should be done?

clipboard.png

clipboard.png

clipboard.png

Mar.03,2021

ask for advice!


should be bound to the parent tag of all the elements you want to click on. Then determine if it is the element that you want the event to take effect.


judge event source . Chestnut


you add a click method to your outermost layer. Ng-click= "closeThisDialog", and then add a way to stop bubbling for all click events in it

Menu