Skip to content

Commit

Permalink
Fixed #2196 - VirtualScroller issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jul 16, 2021
1 parent a5bd2d2 commit 02c2fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/virtualscroller/VirtualScroller.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
contain: strict;
transform: translateZ(0);
will-change: scroll-position;
outline: 0 none;
}

.p-virtualscroller-content {
Expand Down
2 changes: 1 addition & 1 deletion src/components/virtualscroller/VirtualScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export class VirtualScroller extends Component {
const content = this.renderContent();

return (
<div ref={(el) => this.element = el} className={className} style={this.props.style} onScroll={this.onScroll}>
<div ref={(el) => this.element = el} className={className} tabIndex={0} style={this.props.style} onScroll={this.onScroll}>
{content}
<div ref={(el) => this.spacer = el} className="p-virtualscroller-spacer"></div>
{loader}
Expand Down

0 comments on commit 02c2fcb

Please sign in to comment.