yusuketk 6 лет назад
Родитель
Сommit
29049d6536
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/client/js/components/SearchPage/SearchResultList.jsx

+ 1 - 0
src/client/js/components/SearchPage/SearchResultList.jsx

@@ -18,6 +18,7 @@ class SearchResultList extends React.Component {
       const showTags = (page.tags != null) && (page.tags.length > 0);
 
       return (
+        // Add prefix 'id_' in id attr, because scrollspy of bootstrap doesn't work when the first letter of id of target component is numeral.
         <div id={`id_${page._id}`} key={page._id} className="search-result-page mb-5">
           <h2>
             <a href={page.path}>{page.path}</a>