Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-18 19:13:37 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-18 19:13:37 -0700
commitea2ff860fa53620491385685330e99c71ffc7581 (patch)
treefc2c53991f1eff4e9b96080ba347e8432d37b836 /public/soldier_record_block.js
parentac71447aee59daa5693cc09a50b4b3101fbdefb2 (diff)
Use checkboxes for grenades
Diffstat (limited to 'public/soldier_record_block.js')
-rw-r--r--public/soldier_record_block.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/soldier_record_block.js b/public/soldier_record_block.js
index fd1c661..0bf5a9a 100644
--- a/public/soldier_record_block.js
+++ b/public/soldier_record_block.js
@@ -47,6 +47,11 @@ customElements.define(
shadowRoot.appendChild(templateContent.cloneNode(true));
}
+
+ connectedCallback() {
+ // this.shadowRoot.querySelectorAll('.grenades *').forEach(el => el.addEventListener('click', e => e.stopPropagation()));
+ this.shadowRoot.querySelector('.grenades').addEventListener('click', e => e.stopPropagation());
+ }
},
{ extends: 'div' }
);