From bdd30ceecc87ebda587a3b0ec6a0aeb6d90f2a36 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 17 Sep 2020 02:19:47 +0200 Subject: [PATCH] Add documentation, keep lifecycle methods on top --- js/src/forum/components/AffixedSidebar.js | 35 +++++++++++++++-------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/js/src/forum/components/AffixedSidebar.js b/js/src/forum/components/AffixedSidebar.js index 671ba591a..cb11238b0 100644 --- a/js/src/forum/components/AffixedSidebar.js +++ b/js/src/forum/components/AffixedSidebar.js @@ -1,10 +1,33 @@ import Component from '../../common/Component'; +/** + * The `AffixedSidebar` component uses Bootstrap's "affix" plugin to keep a + * sidebar navigation at the top of the viewport when scrolling. + * + * ### Children + * + * The component must wrap an element that itself wraps an