Fix rüstungsmerkmale update

This commit was merged in pull request #28.
This commit is contained in:
Byroks committed 2026-10-28 07:36:39 +01:00
1 parent bde7ea7e2e
commit 7f9eda1c35
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -88,8 +88,9 @@ export class M6ItemSheet extends api.HandlebarsApplicationMixin(sheets.ItemSheet
event.preventDefault();
const currentInput = event.currentTarget;
const value = currentInput.value;
const location = currentInput.name || currentInput.id;
console.log("Feld verlassen! Aktueller Wert:", value);
this.item.update({ [`${currentInput.name}`]: value.split(/[\s,]+/) });
this.item.update({ [`${location}`]: value.split(/[\s,]+/) });
}
/* -------------------------------------------------- */
+1 -1
View File
@@ -63,7 +63,7 @@
<div class="col-12">
<div class="d-flex justify-content-between">
<p>{{localize "Midgard6.Item.waffenmerkmale"}}</p>
<input style="margin-left: 8px;" type="text" data-action="splitIntoArray" id="merkmale" name="system.merkmale" list="merkmalOptions" value="{{splitArray system.merkmale}}">
<input style="margin-left: 8px;" type="text" data-action="splitIntoArray" id="system.merkmale" name="system.merkmale" value="{{splitArray system.merkmale}}">
</div>
</div>
</div>