fix class selection query

This commit is contained in:
aamunger
2023-04-24 14:05:27 -07:00
parent 5605a4ed7d
commit 4602cf075a

View File

@@ -210,7 +210,7 @@ function initializeScroll(scrollableElement: HTMLElement, disposables: Disposabl
// Find the scrollTop of the existing scrollable output, return undefined if at the bottom or element doesn't exist
function findScrolledHeight(container: HTMLElement): number | undefined {
const scrollableElement = container.querySelector(scrollableClass);
const scrollableElement = container.querySelector('.' + scrollableClass);
if (scrollableElement && scrollableElement.scrollHeight - scrollableElement.scrollTop - scrollableElement.clientHeight > 2) {
// not scrolled to the bottom
return scrollableElement.scrollTop;