app/components/ariadne/ui/dialog/component.ts in ariadne_view_components-0.0.79.2 vs app/components/ariadne/ui/dialog/component.ts in ariadne_view_components-0.0.80.3

- old
+ new

@@ -3,14 +3,11 @@ export default class DialogController extends controllerFactory()({ targets: {dialog: HTMLDialogElement}, }) { close() { + if (!this.dialogTarget.open) return this.dialogTarget.close() - // reset any child forms - // for (const form of this.dialogTarget.querySelectorAll('form') ?? []) { - // form.reset() - // } enableBodyScroll(this.dialogTarget) } disconnect() { this.close() }