From 038e1a0fc45d6747fb39318d0a63b353cb51ad0a Mon Sep 17 00:00:00 2001 From: druid <druid@druids-MBP-2.lan> Date: Thu, 21 Jan 2021 17:56:15 +0200 Subject: [PATCH] code cleanup --- .../hy-desktop-menu-links/hy-desktop-menu-links.tsx | 7 ------- src/components/site-header/site-header.tsx | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.tsx b/src/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.tsx index dcd5d96d..03d02953 100644 --- a/src/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.tsx +++ b/src/components/site-header/hy-desktop-menu-links/hy-desktop-menu-links.tsx @@ -199,13 +199,6 @@ export class HyDesktopMenuLinks { } } - @Listen('click', {target: 'window'}) - handleWindowClick(event) { - this.handleDesktopMenuClose(event); - - event.stopPropagation(); - } - handleDesktopMenuClose(event) { let fadeOut = true; this.closePanel(fadeOut); diff --git a/src/components/site-header/site-header.tsx b/src/components/site-header/site-header.tsx index d6dec401..340b1df2 100644 --- a/src/components/site-header/site-header.tsx +++ b/src/components/site-header/site-header.tsx @@ -60,9 +60,9 @@ export class SiteHeader { @Listen('scroll', {target: 'window'}) handleScroll() { - if (this.el.getAttribute('menu-type') === 'desktop') { - this.didScroll = true; - } + //if (this.el.getAttribute('menu-type') === 'desktop') { + this.didScroll = true; + //} } componentDidLoad() { -- GitLab