mirror of
https://github.com/anareaty/html-checkboxes.git
synced 2026-07-22 05:37:43 +00:00
Update main.ts
Added checking for hc- id
This commit is contained in:
parent
23a2526fc4
commit
feb08b5d69
1 changed files with 2 additions and 2 deletions
4
main.ts
4
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue