소스 검색

change comment

yohei0125 4 년 전
부모
커밋
79dfcce7f4
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) => {
-  // use querySelector to intentionally get element which is found first
+  // use querySelector to intentionally get the first element found
   const highlightedKeyword = scrollElement.querySelector('.highlighted-keyword') as HTMLElement;
   if (highlightedKeyword != null) {
     smoothScrollIntoView(highlightedKeyword, SCROLL_OFFSET_TOP, scrollElement);