Tìm kiếm trang web

typescript - Angular Material: Màu trắng xuất hiện trong nền sau khi bấm vào Xóa hàng từ Bảng


Màu trắng xuất hiện trên nền của hộp thoại:

TypeScript: config-referrals.component.ts

    openDialog(action, obj) {
        this.globalService.configAvailability = null;
        obj.action = action;
        const dialogRef = this.dialog.open(AddConsultantComponent,{
          data: obj,
        });
        dialogRef.afterClosed().subscribe(result => {
          this.ngOnInit();
        });
      }

Câu trả lời #1

TypeScript: config-referrals.component.ts

    openDialog(action, obj) {
            this.globalService.configAvailability = null;
            obj.action = action;
            const dialogRef = this.dialog.open(AddConsultantComponent,{
              data: obj,
              scrollStrategy: new NoopScrollStrategy()
            });
            dialogRef.afterClosed().subscribe(result => {
              this.ngOnInit();
            });
          }