Category navigation wrong CSS on refresh

When I navigate to a category, it typically looks like this:

But I updated to beta9 today and even though the normal version shows up when I navigate to it, if I refresh the page, the boxes are not properly styled:

This happens because the .select-kit-header and the d-icon are losing their inline style property:

I’m also seeing this error in the console, but I don’t know if it’s related (I’m on desktop and it also appears on the initial navigation, when things look normal): Uncaught (in promise) ReferenceError: Cannot access ‘hideMobile’ before initialization

2개의 좋아요

Do you have the Discourse Tag Banners component installed? I recognize that ‘hideMobile’ error from that… if you update the component that should go away (if it doesn’t, let us know!).

3개의 좋아요

Hi Kris,

I don’t and all my components are updated. These are the ones I have:

  • Add Group CSS classes
  • Category Headers theme component
  • Custom Header Links
  • DiscoTOC
  • Mobile Category List Adjustments
  • Topic Thumbnails
2개의 좋아요

Ah perhaps it’s this one, it has something similar here:

https://github.com/naidihr/discourse-category-headers/blob/master/common/header.html#L21

If you temporarily disable the category headers component, does that error go away? (and if it does, is the category dropdown issue fixed?)

3개의 좋아요

Yes, it goes away and the issue is fixed.