yohei0125 пре 4 година
родитељ
комит
35bf8cf806
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/components/SearchPage/SearchResultContent.tsx

+ 1 - 1
packages/app/src/components/SearchPage/SearchResultContent.tsx

@@ -54,7 +54,7 @@ type Props ={
 }
 
 const scrollTo = (scrollElement:HTMLElement) => {
-  // querySelector returns element which is found first
+  // use querySelector to intentionally get element which is found first
   const highlightedKeyword = scrollElement.querySelector('.highlighted-keyword') as HTMLElement;
   if (highlightedKeyword != null) {
     smoothScrollIntoView(highlightedKeyword, SCROLL_OFFSET_TOP, scrollElement);