I'm using the code as below to show the window popup
public showValuationReport(dataItem) {
document.body.style.overflow = "hidden";
this.bgOverlayOpened = true;
const windowRef = this.windowService.open({
title: 'Valuation Report',
content: PaperworkViewerComponent
});
const window: PaperworkViewerComponent = windowRef.content.instance;
const reportOptions = {
reportType: '',
reportName: 'VehicleInfoSheet',
stockId: dataItem.stockId,
branchId: dataItem.branchId,
}
window.reportOptions = reportOptions;
windowRef.result.subscribe(result => {
if (result instanceof WindowCloseResult) {
this.bgOverlayOpened = false;
document.body.style.overflow = "";
} else { }
})
}
I was disable the scrolling after open the window
But still got that bug if user tick outside the window the back to drag them
Và vấn đề là