Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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' }
);