File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ export class MgtLogin extends MgtBaseComponent {
7272 */
7373 public connectedCallback ( ) {
7474 super . connectedCallback ( ) ;
75+ this . addEventListener ( 'click' , e => e . stopPropagation ( ) ) ;
7576 window . addEventListener ( 'click' , this . handleWindowClick ) ;
7677 }
7778
@@ -199,16 +200,7 @@ export class MgtLogin extends MgtBaseComponent {
199200 }
200201
201202 private handleWindowClick ( e : MouseEvent ) {
202- if ( e . target === this ) {
203- return ;
204- }
205-
206- // get popup bounds
207- const popup = this . renderRoot . querySelector ( '.popup' ) ;
208- if ( popup ) {
209- this . _popupRect = popup . getBoundingClientRect ( ) ;
210- this . _showMenu = false ;
211- }
203+ this . _showMenu = false ;
212204 }
213205
214206 private renderLogIn ( ) {
You can’t perform that action at this time.
0 commit comments