Skip to content

Commit

Permalink
Don't scroll when focusing cell output
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Nov 5, 2021
1 parent 767a12a commit 8889f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ function setFocusedCell(hook, cellId, scroll = true) {
);
// Focus the primary cell content, this is important for screen readers
const cellBody = cell.querySelector(`[data-element="cell-body"]`);
cellBody.focus();
cellBody.focus({ preventScroll: true });
} else {
hook.state.focusedCellType = null;
hook.state.focusedSectionId = null;
Expand Down

0 comments on commit 8889f11

Please sign in to comment.