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…
Reference in New Issue