Skip to content

Commit

Permalink
Use the selection rather than the start
Browse files Browse the repository at this point in the history
  • Loading branch information
Douwe M Osinga committed Feb 7, 2022
1 parent b7bacff commit 9e83e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export default class DataSheet extends PureComponent {

this._setState({
selecting: !isNowEditingSameCell,
start: e.shiftKey ? this.state.start : { i, j },
start: e.shiftKey ? this.getState().start : { i, j },
end: { i, j },
editing: editing,
forceEdit: !!isNowEditingSameCell,
Expand Down

0 comments on commit 9e83e66

Please sign in to comment.