# \<body\> docked class not removed when scrolling back to the top?

**URL:** <https://meta.discourse.org/t/body-docked-class-not-removed-when-scrolling-back-to-the-top/146194>\
**Category:** Product Support\
**Created:** [March 30, 2020, 7:59pm UTC](https://meta.discourse.org/t/body-docked-class-not-removed-when-scrolling-back-to-the-top/146194 "2020-03-30T19:59:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [March 30, 2020, 7:59pm UTC](https://meta.discourse.org/t/body-docked-class-not-removed-when-scrolling-back-to-the-top/146194/1 "2020-03-30T19:59:14Z")

</div>

Hi.  
When we start scrolling, the class `docked` appears on `<body>`.  
But when we scroll back to the top, the class `docked` remains.

Is that supposed to be this way 🤔? I’d like to make the header different when it goes sticky, and I currently can’t because of this.

---

_[View the full topic](https://meta.discourse.org/t/body-docked-class-not-removed-when-scrolling-back-to-the-top/146194)._
