Skip to content

Commit

Permalink
Merge pull request #190 from ibdafna/scroll
Browse files Browse the repository at this point in the history
Remove Chrome default scroll on focus
  • Loading branch information
blink1073 authored Jun 10, 2021
2 parents 5c1028d + 2950b3a commit 2afa2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/datagrid/src/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ class DataGrid extends Widget {
* A message handler invoked on an `'activate-request'` message.
*/
protected onActivateRequest(msg: Message): void {
this.viewport.node.focus();
this.viewport.node.focus({preventScroll: true});
}

/**
Expand Down

0 comments on commit 2afa2e7

Please sign in to comment.