Skip to content
Snippets Groups Projects
Commit 75337414 authored by shamalainen's avatar shamalainen
Browse files

Fix console error

parent 35d8e9a8
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,9 @@ export class HyDesktopMenuLinks { ...@@ -69,6 +69,9 @@ export class HyDesktopMenuLinks {
showBackdropShadow(state = 'close', top = 0) { showBackdropShadow(state = 'close', top = 0) {
let hyHeader = this.el.closest('.hy-site-header') as HTMLElement; let hyHeader = this.el.closest('.hy-site-header') as HTMLElement;
if (!hyHeader) return;
let hyBackdropDiv = hyHeader.children[0] as HTMLElement; let hyBackdropDiv = hyHeader.children[0] as HTMLElement;
if (hyBackdropDiv) { if (hyBackdropDiv) {
...@@ -78,7 +81,6 @@ export class HyDesktopMenuLinks { ...@@ -78,7 +81,6 @@ export class HyDesktopMenuLinks {
hyBackdropDiv.style.top = `${top}px`; hyBackdropDiv.style.top = `${top}px`;
hyBackdropDiv.style.position = 'absolute'; hyBackdropDiv.style.position = 'absolute';
hyBackdropDiv.classList.add('is-active'); hyBackdropDiv.classList.add('is-active');
//console.log(document.body.clientHeight + ' ' + window.outerHeight + ' ' + top);
} else { } else {
hyBackdropDiv.removeAttribute('style'); hyBackdropDiv.removeAttribute('style');
hyBackdropDiv.classList.remove('is-active'); hyBackdropDiv.classList.remove('is-active');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment