yusuketk пре 6 година
родитељ
комит
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>