Add event listening for embedded item deletion

This commit is contained in:
Oliver-Akins 2024-01-10 19:17:44 -07:00
parent df1e768cc2
commit dcdc1b7764
2 changed files with 32 additions and 7 deletions

View file

@ -21,7 +21,9 @@ export class PlayerSheet extends GenericActorSheet {
html.find(`.add-spell`).on(`click`, this.actor.createCustomSpell.bind(this.actor));
html.find(`[data-embedded-update]`)
.on(`change`, this.actor.updateEmbeddedDocument.bind(this.actor));
.on(`change`, this.actor.genericEmbeddedUpdate.bind(this.actor));
html.find(`[data-embedded-delete]`)
.on(`click`, this.actor.genericEmbeddedDelete.bind(this.actor));
};
async getData() {