GH-48 Character Notes save fix

- Closes #48
- Fixes Character Notes save when adding a new EmbedItem
This commit is contained in:
megastruktur 2020-05-20 14:53:48 +03:00
parent c6222c0d49
commit c5540516da
No known key found for this signature in database
GPG Key ID: 26EB6D6AE7FDC8C1
3 changed files with 11 additions and 3 deletions

3
CHANGELOG.txt Normal file
View File

@ -0,0 +1,3 @@
v0.5.2
- Textareas are now saved when adding embedded entity.

View File

@ -11,6 +11,11 @@ export class BladesSheet extends ActorSheet {
activateListeners(html) {
super.activateListeners(html);
html.find(".item-add-popup").click(this._onItemAddClick.bind(this));
// This is a workaround until is being fixed in FoundryVTT.
if ( this.options.submitOnChange ) {
html.on("change", "textarea", this._onChangeInput.bind(this)); // Use delegated listener on the form
}
}
/* -------------------------------------------- */

View File

@ -2,7 +2,7 @@
"name": "blades-in-the-dark",
"title": "Blades in the Dark",
"description": "Blades in the dark game system.",
"version": "0.5.1",
"version": "0.5.2",
"minimumCoreVersion": "0.5.3",
"compatibleCoreVersion": "0.5.7",
"templateVersion": 1,
@ -11,8 +11,8 @@
"styles": ["styles/blades.css"],
"languages": ["en"],
"url": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/",
"manifest": "https://raw.githubusercontent.com/megastruktur/foundryvtt-blades-in-the-dark/master/system.json",
"download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/0.5.1.zip",
"manifest": "https://raw.githubusercontent.com/megastruktur/foundryvtt-blades-in-the-dark/0.5.2/system.json",
"download": "https://github.com/megastruktur/foundryvtt-blades-in-the-dark/archive/0.5.2.zip",
"packs": [
{
"name": "class",