From feb08b5d6961e2aaa68bb50109f39d4050432bb2 Mon Sep 17 00:00:00 2001 From: Anastasia Fedotova <55949830+anareaty@users.noreply.github.com> Date: Wed, 5 Mar 2025 13:40:55 +0400 Subject: [PATCH] Update main.ts Added checking for hc- id --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index 8a7f4da..01d0ac9 100644 --- a/main.ts +++ b/main.ts @@ -39,7 +39,7 @@ export default class HTMLCheckboxPlugin extends Plugin { if (target.localName == "input" && (target as HTMLInputElement).type == "checkbox" && - target.id + target.id && target.id.startsWith("hc-") ) { e.preventDefault() @@ -116,7 +116,7 @@ export default class HTMLCheckboxPlugin extends Plugin { let target = e.target as HTMLElement if (target.localName == "input" && (target as HTMLInputElement).type == "checkbox" && - target.id + target.id && target.id.startsWith("hc-") ) { const menu = new Menu();