Web: Components: Fix scroll when file element is not visible

This commit is contained in:
Aleksandr Lushkin 2023-07-24 12:28:55 +02:00
parent 124afc4a05
commit 9c1b938703

View File

@ -34,7 +34,7 @@ class HotkeyStore {
scrollToCaret = () => {
const { offsetTop, item } = this.getItemOffset();
const scroll = document.getElementsByClassName("section-scroll")[0];
const scroll = document.getElementById("sectionScroll");
const scrollRect = scroll?.getBoundingClientRect();
if (item && item[0]) {