Various fixes and changes based on tester feedback
This commit is contained in:
@@ -81,6 +81,12 @@ export default class OathHammerItemSheet extends HandlebarsApplicationMixin(foun
|
||||
_onRender(context, options) {
|
||||
super._onRender(context, options)
|
||||
this.#dragDrop.forEach((d) => d.bind(this.element))
|
||||
for (const pm of this.element.querySelectorAll("prose-mirror[name]")) {
|
||||
pm.addEventListener("change", async (event) => {
|
||||
event.stopPropagation()
|
||||
await this.document.update({ [pm.name]: pm.value ?? "" })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#createDragDropHandlers() {
|
||||
|
||||
Reference in New Issue
Block a user