Yuki Takei 2 лет назад
Родитель
Сommit
a2bd66528e

+ 1 - 1
apps/app/src/components/ReactMarkdownComponents/TableWithEditButton.tsx

@@ -42,7 +42,7 @@ export const TableWithEditButton = React.memo((props: TableWithEditButtonProps):
   return (
     <div className={`editable-with-handsontable ${styles['editable-with-handsontable']}`}>
       { showEditButton && (
-        <button className="handsontable-modal-trigger" onClick={editButtonClickHandler}>
+        <button type="button" className="handsontable-modal-trigger" onClick={editButtonClickHandler}>
           <i className="icon-note"></i>
         </button>
       )}

+ 1 - 3
apps/app/src/components/TableOfContents.tsx

@@ -61,9 +61,7 @@ const TableOfContents = (): JSX.Element => {
           className="revision-toc-content mb-3"
         >
           {/* parse blank to show toc (https://github.com/weseek/growi/pull/6277) */}
-          <ReactMarkdown {...rendererOptions}>
-
-          </ReactMarkdown>
+          <ReactMarkdown {...rendererOptions}>{' '}</ReactMarkdown>
         </div>
       </StickyStretchableScroller>
     </div>