Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nadbm committed Feb 14, 2021
1 parent 6ade00a commit 8aa4593
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 84 deletions.
4 changes: 2 additions & 2 deletions lib/DataSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ var DataSheet = (function (_PureComponent) {
// setTimeout makes sure that component is done handling the event before we take over
setTimeout(function () {
func();
_this3.dgDom && _this3.dgDom.focus();
_this3.dgDom && _this3.dgDom.focus({ preventScroll: true });
}, 1);
}
}
Expand Down Expand Up @@ -888,7 +888,7 @@ var DataSheet = (function (_PureComponent) {
key: 'onRevert',
value: function onRevert() {
this._setState({ editing: {} });
this.dgDom && this.dgDom.focus();
this.dgDom && this.dgDom.focus({ preventScroll: true });
},
},
{
Expand Down
Loading

0 comments on commit 8aa4593

Please sign in to comment.