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
parent
commit
0a9386141b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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