@@ -75,7 +75,7 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
75
75
/** Store pointerdown event target to track origin of click. */
76
76
private _pointerDownListener = ( event : PointerEvent ) => {
77
77
this . _pointerDownEventTarget = _getEventTarget ( event ) ;
78
- }
78
+ } ;
79
79
80
80
/** Click event listener that will be attached to the body propagate phase. */
81
81
private _clickListener = ( event : MouseEvent ) => {
@@ -86,8 +86,10 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
86
86
// This is done by using the event target of the preceding pointerdown event.
87
87
// Every click event caused by a pointer device has a preceding pointerdown
88
88
// 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 ;
91
93
// Reset the stored pointerdown event target, to avoid having it interfere
92
94
// in subsequent events.
93
95
this . _pointerDownEventTarget = null ;
@@ -110,8 +112,10 @@ export class OverlayOutsideClickDispatcher extends BaseOverlayDispatcher {
110
112
// If it's a click inside the overlay, just break - we should do nothing
111
113
// If it's an outside click (both origin and target of the click) dispatch the mouse event,
112
114
// 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
+ ) {
115
119
break ;
116
120
}
117
121
0 commit comments