index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-18 19:13:37 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-18 19:13:37 -0700 |
commit | ea2ff860fa53620491385685330e99c71ffc7581 (patch) | |
tree | fc2c53991f1eff4e9b96080ba347e8432d37b836 /public/soldier_record_block.js | |
parent | ac71447aee59daa5693cc09a50b4b3101fbdefb2 (diff) |
Use checkboxes for grenades
Diffstat (limited to 'public/soldier_record_block.js')
-rw-r--r-- | public/soldier_record_block.js | 5 |
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' } ); |