From 8f2bd63709b5664ec01051128d29466e13cacfa4 Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Fri, 17 Nov 2023 17:33:21 +0530 Subject: [PATCH] Updated the click event on sidebar to re calculat the height --- templates/Blog/Blog.js | 1 + templates/Default/Default.js | 1 + templates/News/News.js | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/Blog/Blog.js b/templates/Blog/Blog.js index 2ec45ac4..89796279 100644 --- a/templates/Blog/Blog.js +++ b/templates/Blog/Blog.js @@ -236,6 +236,7 @@ function setSidebarMaxHeight() { function setSidebarHeight() { window.addEventListener('resize', setSidebarMaxHeight); + window.addEventListener('click', setSidebarMaxHeight); } export default async function buildAutoBlocks(block) { diff --git a/templates/Default/Default.js b/templates/Default/Default.js index 0ea68a64..a5fde901 100644 --- a/templates/Default/Default.js +++ b/templates/Default/Default.js @@ -9,6 +9,7 @@ function setSidebarMaxHeight() { function setSidebarHeight() { window.addEventListener('resize', setSidebarMaxHeight); + window.addEventListener('click', setSidebarMaxHeight); } export default function buildAutoBlocks(block) { diff --git a/templates/News/News.js b/templates/News/News.js index b68535cc..9badbeb0 100644 --- a/templates/News/News.js +++ b/templates/News/News.js @@ -235,6 +235,7 @@ function setSidebarMaxHeight() { function setSidebarHeight() { window.addEventListener('resize', setSidebarMaxHeight); + window.addEventListener('click', setSidebarMaxHeight); } export default async function buildAutoBlocks(block) {