This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'dart:async';
66import 'dart:html' ;
77
88import 'package:angular/angular.dart' ;
9+ import 'package:angular_components/laminate/overlay/constants.dart' ;
910import 'package:angular_components/utils/browser/events/events.dart' as events;
1011
1112/// Tracks a hierarchy of visible popup and provides it closing logic.
@@ -62,8 +63,8 @@ class PopupHierarchy {
6263 // created by another app using ACX.
6364 // TODO(google): Find a way to compute it only when needed and make it
6465 // globally accessible.
65- var modalPanes =
66- document .querySelectorAll ('.acx-overlay-container .pane.modal.visible' );
66+ var modalPanes = document
67+ .querySelectorAll ('.$ overlayContainerClassName .pane.modal.visible' );
6768 if (modalPanes.isNotEmpty) {
6869 if (useMultiModalDismissal) {
6970 // Only close popups that belong to the currently visible modal or whose
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import 'dart:async';
66import 'dart:html' ;
77
88import 'package:angular/angular.dart' ;
9+ import 'package:angular_components/laminate/overlay/constants.dart' ;
910import 'package:angular_components/laminate/popup/popup.dart' ;
1011import 'package:angular_components/src/material_tooltip/tooltip_controller.dart' ;
1112import 'package:angular_components/model/action/delayed_action.dart' ;
@@ -163,7 +164,7 @@ class ClickableTooltipTargetDirective extends TooltipBehavior
163164 // Don't hide the tooltip if focus went to an element inside the tooltip.
164165 HtmlElement el;
165166 for (el = event.relatedTarget; el.parent != null ; el = el.parent) {
166- if (el.className == "acx-overlay-container" ) return ;
167+ if (el.className == overlayContainerClassName ) return ;
167168 }
168169
169170 hideTooltip (immediate: true );
You can’t perform that action at this time.
0 commit comments