From a3e4c86a4cf18e31fe5b65d57ce120174c9f6aee Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Sun, 16 Jul 2023 06:05:17 +0000
Subject: [PATCH] fix ci, disable strict path type checks by default
---
quartz/components/scripts/callout.inline.ts | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/quartz/components/scripts/callout.inline.ts b/quartz/components/scripts/callout.inline.ts
index 081a5a2..c13571a 100644
--- a/quartz/components/scripts/callout.inline.ts
+++ b/quartz/components/scripts/callout.inline.ts
@@ -1,7 +1,7 @@
function toggleCallout(this: HTMLElement) {
const outerBlock = this.parentElement!
- this.classList.toggle(`is-collapsed`)
- const collapsed = this.classList.contains(`is-collapsed`)
+ outerBlock.classList.toggle(`is-collapsed`)
+ const collapsed = outerBlock.classList.contains(`is-collapsed`)
const height = collapsed ? this.scrollHeight : outerBlock.scrollHeight
outerBlock.style.maxHeight = height + `px`
}
--
Gitblit v1.10.0