Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit d872cd9

Browse files
authored
Merge pull request #465 from openforge/fix/team-resize-replace
fix(app-team-landing): add restraint for querySelector for resize
2 parents e19cbf3 + 8e58b56 commit d872cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/app-team-landing/app-team-landing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export class AppTeamLanding {
436436
}
437437
window.addEventListener('resize', () => {
438438
const backgroundPhoto = this.changeImageFormat(this.data[this.match.params.member].backgroundPhoto ? this.data[this.match.params.member].backgroundPhoto : null);
439-
const hero = document.querySelector('.hero') as HTMLElement;
439+
const hero = document.querySelector('.team-landing > .container-fluid > .hero') as HTMLElement;
440440
if (window.innerWidth > 767.98) {
441441
hero.style.backgroundColor = '#292A2D';
442442
if (backgroundPhoto) {

0 commit comments

Comments
 (0)