# Header Categories Navbar

**URL:** <https://meta.discourse.org/t/header-categories-navbar/249179>\
**Category:** Theme component\
**Tags:** official, categories-navbar\
**Created:** [December 16, 2022, 7:57pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179 "2022-12-16T19:57:22Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Arnold](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arnold/32/389492_2.png) [@Arnold](https://meta.discourse.org/u/Arnold)\
**Post date:** [June 4, 2024, 10:21pm UTC](https://meta.discourse.org/t/header-categories-navbar/249179/26 "2024-06-04T22:21:49Z")

</div>

Next problem:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/b/c/ebc51bda048f456632cf2759123ea2af18fc6dcd.png)

When in a topic im trying to click on a category.

Then this happens:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/1/d/71dbd780c4385a08c2c5709a7f3d27f3860ea4a0.png)

The menu disappears.

Console error:

```plaintext
custom-categories-navbar.js:64 Uncaught (in promise) 
TypeError: Cannot read properties of null (reading 'scrollIntoView')
    at n.setActiveSlug (custom-categories-navbar.js:64:52)
    at new n (custom-categories-navbar.js:48:12)
    at EmberGlimmerComponentManager.createComponent (base-component-manager.js:26:14)
    at EmberGlimmerComponentManager.createComponent (ember-component-manager.js:51:29)
    at M.create (manager.js:543:1)
    at Object.evaluate (runtime.js:2676:1)
    at Object.evaluate (runtime.js:1052:1)
    at It.evaluateSyscall (runtime.js:4204:1)
    at It.evaluateInner (runtime.js:4175:1)
    at It.evaluateOuter (runtime.js:4168:1)
    at Wt.next (runtime.js:4999:1)
    at Wt._execute (runtime.js:4986:1)
    at Wt.execute (runtime.js:4979:1)
    at $t.insertItem (runtime.js:4468:1)
    at $t.sync (runtime.js:4429:1)
    at $t.evaluate (runtime.js:4366:1)
    at Dt._execute (runtime.js:4247:1)
    at Dt.execute (runtime.js:4232:1)
    at qt.rerender (runtime.js:4547:1)
    at hr.render (index.js:4674:1)
    at index.js:4934:1
    at Nt (runtime.js:4080:1)
    at gr._renderRoots (index.js:4916:1)
    at gr._renderRootsTransaction (index.js:4960:1)
    at gr._revalidate (index.js:4992:1)
    at invoke (backburner.js.js:280:1)
    at h.flush (backburner.js.js:197:1)
    at p.flush (backburner.js.js:358:1)
    at B._end (backburner.js.js:798:1)
    at B.end (backburner.js.js:589:1)
    at B._run (backburner.js.js:842:1)
    at B._join (backburner.js.js:819:1)
    at B.join (backburner.js.js:629:1)
    at Array.<anonymous> (index.js:4765:1)
    at B._trigger (backburner.js.js:896:1)
    at B._end (backburner.js.js:811:1)
    at B._boundAutorunEnd (backburner.js.js:523:1)

```

---

_[View the full topic](https://meta.discourse.org/t/header-categories-navbar/249179)._
