mirror of
https://github.com/livebook-dev/livebook.git
synced 2026-02-19 00:43:31 +08:00
Don't scroll when focusing cell output
This commit is contained in:
parent
767a12ab77
commit
8889f11244
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue