Skip to content

Commit f82b923

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fixing test.
1 parent eff1249 commit f82b923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
676676
}
677677

678678
public preventContainerScroll(evt) {
679-
if (evt.target.scrollTop !== 0) {
679+
if (evt.target.scrollTop !== 0 && this.hasDetails) {
680680
const activeElem = document.activeElement;
681681
this.verticalScrollContainer.addScrollTop(evt.target.scrollTop);
682682
evt.target.scrollTop = 0;

0 commit comments

Comments
 (0)