Browse Source

Fix not closing pop-up after click insight dashboard zone

pull/12841/head
kalytka 1 year ago
parent
commit
894f6db518
  1. 2
      ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts

2
ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts

@ -395,7 +395,7 @@ export class DashboardComponent extends PageComponent implements IDashboardCompo
onDashboardMouseDown($event: MouseEvent) {
if (this.callbacks && this.callbacks.onDashboardMouseDown) {
if ($event) {
if ($event && this.isEdit) {
$event.stopPropagation();
}
this.callbacks.onDashboardMouseDown($event);

2
ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts

@ -204,7 +204,7 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O
}
onMouseDown(event: MouseEvent) {
if (event) {
if (event && this.isEdit) {
event.stopPropagation();
}
this.widgetComponentAction.emit({

Loading…
Cancel
Save