Skip to content

Commit f56d190

Browse files
committed
fix(grid): fixed grid overlay scroll in pop up containers
1 parent 234c412 commit f56d190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser/src/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ export class Router {
167167
}
168168

169169
private preventDocumentScroll(event:any) {
170-
if (event.target.outerHTML.toLowerCase().includes('igx')) {
170+
const eventPath = event.composedPath();
171+
if (event.target.outerHTML.toLowerCase().includes('igx') && eventPath.filter(x => x.classList?.value === 'igx-grid__tbody').length > 0) {
171172
event.preventDefault();
172173
}
173174
}

0 commit comments

Comments
 (0)