Browse Source
Merge pull request #12841 from kalutkaz/fix/notClosingPopUp
Fix pop-up closing issue on dashboards
pull/12883/head
Igor Kulikov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/dashboard/dashboard.component.ts
-
ui-ngx/src/app/modules/home/components/widget/widget-container.component.ts
|
|
@ -395,7 +395,7 @@ export class DashboardComponent extends PageComponent implements IDashboardCompo |
|
|
|
|
|
|
|
|
onDashboardMouseDown($event: MouseEvent) { |
|
|
onDashboardMouseDown($event: MouseEvent) { |
|
|
if (this.callbacks && this.callbacks.onDashboardMouseDown) { |
|
|
if (this.callbacks && this.callbacks.onDashboardMouseDown) { |
|
|
if ($event) { |
|
|
if ($event && this.isEdit) { |
|
|
$event.stopPropagation(); |
|
|
$event.stopPropagation(); |
|
|
} |
|
|
} |
|
|
this.callbacks.onDashboardMouseDown($event); |
|
|
this.callbacks.onDashboardMouseDown($event); |
|
|
|
|
|
@ -204,7 +204,7 @@ export class WidgetContainerComponent extends PageComponent implements OnInit, O |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
onMouseDown(event: MouseEvent) { |
|
|
onMouseDown(event: MouseEvent) { |
|
|
if (event) { |
|
|
if (event && this.isEdit) { |
|
|
event.stopPropagation(); |
|
|
event.stopPropagation(); |
|
|
} |
|
|
} |
|
|
this.widgetComponentAction.emit({ |
|
|
this.widgetComponentAction.emit({ |
|
|
|