Przeglądaj źródła

Fix label click behavior

maeshinshin 1 rok temu
rodzic
commit
5ff1d4d93a

+ 1 - 3
apps/app/src/components/Sidebar/PageTree/PageTreeSubstance.tsx

@@ -57,13 +57,11 @@ export const PageTreeHeader = memo(({ isWipPageShown, onWipPageShownChange }: He
           <li className="dropdown-item" onClick={onWipPageShownChange}>
           <li className="dropdown-item" onClick={onWipPageShownChange}>
             <div className="form-check form-switch">
             <div className="form-check form-switch">
               <input
               <input
-                id="wipPageVisibility"
                 className="form-check-input"
                 className="form-check-input"
                 type="checkbox"
                 type="checkbox"
                 checked={isWipPageShown}
                 checked={isWipPageShown}
-                onChange={() => {}}
               />
               />
-              <label className="form-label form-check-label text-muted mb-0" htmlFor="wipPageVisibility">
+              <label className="form-label form-check-label text-muted mb-0">
                 {t('sidebar_header.show_wip_page')}
                 {t('sidebar_header.show_wip_page')}
               </label>
               </label>
             </div>
             </div>