index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
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' } ); |