app/components/ariadne/ui/dialog/component.ts in ariadne_view_components-0.0.74.1 vs app/components/ariadne/ui/dialog/component.ts in ariadne_view_components-0.0.75

- old
+ new

@@ -4,9 +4,13 @@ export default class DialogController extends controllerFactory()({ targets: {dialog: HTMLDialogElement}, }) { close() { this.dialogTarget.close() + // reset any child forms + for (const form of this.dialogTarget.querySelectorAll('form') ?? []) { + form.reset() + } enableBodyScroll(this.dialogTarget) } disconnect() { this.close() }