mirror of
https://github.com/discourse/discourse-category-banners
synced 2025-02-10 05:24:49 +00:00
DEV: ensure class removal when banner doesn't show (#30)
This commit is contained in:
parent
f7696c3372
commit
3199fd59d3
@ -42,7 +42,12 @@ export default class DiscourseCategoryBanners extends Component {
|
||||
}
|
||||
|
||||
get shouldRender() {
|
||||
return this.isVisible && this.keepDuringLoadingRoute;
|
||||
if (this.isVisible && this.keepDuringLoadingRoute) {
|
||||
return true;
|
||||
} else {
|
||||
document.body.classList.remove("category-header");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
get safeStyle() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user