From 3d5b81541f0f5553b0ed39ad856273ed12beffa1 Mon Sep 17 00:00:00 2001 From: valentine195 <38669521+valentine195@users.noreply.github.com> Date: Fri, 16 Jul 2021 09:15:20 -0400 Subject: [PATCH] Checkbox click functionality affected by Title and Collapse Fixes #61 --- manifest.json | 2 +- package.json | 2 +- src/main.ts | 3 +++ versions.json | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 2b95fcd..ae37f2a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-admonition", "name": "Admonition", - "version": "6.2.0", + "version": "6.2.1", "minAppVersion": "0.11.0", "description": "Admonition block-styled content for Obsidian.md", "author": "Jeremy Valentine", diff --git a/package.json b/package.json index bf17cee..12535ee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-admonition", - "version": "6.2.0", + "version": "6.2.1", "description": "Admonition block-styled content for Obsidian.md", "main": "main.js", "scripts": { diff --git a/src/main.ts b/src/main.ts index 039bbbc..b7cd691 100644 --- a/src/main.ts +++ b/src/main.ts @@ -801,6 +801,9 @@ title: const line = splitContent.find((l) => search.test(l)); input.dataset["line"] = `${splitContent.indexOf(line) + 1}`; + input.onclick = (evt) => { + evt.stopPropagation(); + }; } } diff --git a/versions.json b/versions.json index d810cfa..0425bd6 100644 --- a/versions.json +++ b/versions.json @@ -11,5 +11,5 @@ "4.3.1": "0.12.0", "4.4.2": "0.12.2", "5.0.3": "0.12.2", - "6.2.0": "0.12.4" + "6.2.1": "0.12.4" } \ No newline at end of file