Browse Source

Add comment

kgryte 5 years ago
parent
commit
b387e9f960
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/toc/src/generators/notebook/set_collapsed_state.ts

+ 1 - 1
packages/toc/src/generators/notebook/set_collapsed_state.ts

@@ -140,7 +140,7 @@ function setCollapsedState(
       ow.setHidden(state);
     }
     // Collapse/expand a sub-cell's input area by setting the its `hidden` state (NOTE: a collapsed input area will still appear collapsed!!! Only when a user clicks on the collapsed cell ellipses will the input area display (or, rather, not display!) as being fully hidden. If we want an input area to always be present, e.g., to always allow a user the ability to edit an expanded section, whether or not generated sections are collapsed or expanded, we could remove the following line.):
-    // w.inputArea.setHidden(state);
+    // w.inputArea.setHidden(state); // NOTE: intentionally commented out in order to preserve the above disclaimer and to preserve the option of alternative rendering
   }
   if (state) {
     // Set a meta-data flag to indicate that we've collapsed notebook sections: