fixes eventlistener binding

pull/48/head
macniel 2025-10-03 15:29:51 +02:00
parent 39917a0f89
commit 882ebf8392
2 changed files with 2 additions and 2 deletions

View File

@ -326,7 +326,7 @@ export class CharacterSheet extends ActorSheet {
evt.stopPropagation();
})
html.on('click', '.equipment .name', (evt) => {
html.on('click', '.equipment', (evt) => {
this.openEmbeddedDocument(evt.target.parentElement.dataset.id);
evt.stopPropagation();
})

View File

@ -147,7 +147,7 @@ export class GroupSheet extends ActorSheet {
})
html.on('click', '.equipment .name', (evt) => {
html.on('click', '.equipment', (evt) => {
this.openEmbeddedDocument(evt.target.dataset.id);
evt.stopPropagation();
})