fixes close on submit

main
macniel 2026-03-14 14:45:50 +01:00
parent b59be2e977
commit f4b4233dcb
2 changed files with 3 additions and 0 deletions

View File

@ -166,10 +166,12 @@ export class CombatActionDialog extends HandlebarsApplicationMixin(ApplicationV2
event.preventDefault() event.preventDefault()
CombatActionDialog._instance.#processOnSubmitForm(event, form, formData) CombatActionDialog._instance.#processOnSubmitForm(event, form, formData)
this.close()
} }
static async #onAttack(event, target) { static async #onAttack(event, target) {
CombatActionDialog._instance.#processOnSubmitForm(event, this.element, new FormData(this.element)) CombatActionDialog._instance.#processOnSubmitForm(event, this.element, new FormData(this.element))
this.close()
} }
_configureRenderOptions(options) { _configureRenderOptions(options) {

View File

@ -103,6 +103,7 @@ export class DefenseActionDialog extends HandlebarsApplicationMixin(ApplicationV
targetNumber: this._targetNumber, targetNumber: this._targetNumber,
modDescription: maneuver?.modDescription?.replace("{}", "" + this._mod) ?? "" modDescription: maneuver?.modDescription?.replace("{}", "" + this._mod) ?? ""
}) })
this.close()
} }
static async #onDefend(event, target) { static async #onDefend(event, target) {