@@ -75,7 +75,7 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
7575 /** Store pointerdown event target to track origin of click. */
7676 private _pointerDownListener = ( event : PointerEvent ) => {
7777 this . _pointerDownEventTarget = _getEventTarget ( event ) ;
78- }
78+ } ;
7979
8080 /** Click event listener that will be attached to the body propagate phase. */
8181 private _clickListener = ( event : MouseEvent ) => {
@@ -86,8 +86,10 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
8686 // This is done by using the event target of the preceding pointerdown event.
8787 // Every click event caused by a pointer device has a preceding pointerdown
8888 // event, unless the click was programmatically triggered (e.g. in a unit test).
89- const origin = event . type === 'click' && this . _pointerDownEventTarget
90- ? this . _pointerDownEventTarget : target ;
89+ const origin =
90+ event . type === 'click' && this . _pointerDownEventTarget
91+ ? this . _pointerDownEventTarget
92+ : target ;
9193 // Reset the stored pointerdown event target, to avoid having it interfere
9294 // in subsequent events.
9395 this . _pointerDownEventTarget = null ;
@@ -110,8 +112,10 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
110112 // If it's a click inside the overlay, just break - we should do nothing
111113 // If it's an outside click (both origin and target of the click) dispatch the mouse event,
112114 // and proceed with the next overlay
113- if ( overlayRef . overlayElement . contains ( target as Node ) ||
114- overlayRef . overlayElement . contains ( origin as Node ) ) {
115+ if (
116+ overlayRef . overlayElement . contains ( target as Node ) ||
117+ overlayRef . overlayElement . contains ( origin as Node )
118+ ) {
115119 break ;
116120 }
117121
0 commit comments