瀏覽代碼

add comment

yusuketk 6 年之前
父節點
當前提交
b781f1e5f6
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/client/js/components/SearchPage/SearchResult.jsx

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

@@ -239,6 +239,7 @@ class SearchResult extends React.Component {
     }
     }
 
 
     const listView = this.props.pages.map((page) => {
     const listView = this.props.pages.map((page) => {
+      // Add prefix 'id_' in pageId, because scrollspy of bootstrap doesn't work when the first letter of id attr of target component is numeral.
       const pageId = `#id_${page._id}`;
       const pageId = `#id_${page._id}`;
       return (
       return (
         <Page
         <Page