Skip to content

Commit

Permalink
fix(grid): fixed grid overlay container scrolling (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
tishko0 authored Nov 5, 2024
1 parent 37660a6 commit ff3f30d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browser/src/navigation/SamplesBrowser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ export class SamplesBrowser extends React.Component<any, any>
};

private preventDocumentScroll(event:any) {
if (event.target.outerHTML.toLowerCase().includes('igx')) {
const eventPath = event.composedPath();
if (event.target.outerHTML.toLowerCase().includes('igx') && eventPath.filter(x => x.classList?.value === 'igx-grid__tbody').length > 0) {
event.preventDefault();
}
}
Expand Down

0 comments on commit ff3f30d

Please sign in to comment.