Don't scroll when focusing cell output

This commit is contained in:
Jonatan Kłosko 2021-11-05 18:23:26 +01:00
parent 767a12ab77
commit 8889f11244

View file

@ -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;