web/elements: fix top-right dialog close button not resetting form

closes #2990

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-05-31 19:28:18 +02:00
parent b4d528a789
commit c00f2907ea
1 changed files with 4 additions and 1 deletions

View File

@ -117,7 +117,10 @@ export class ModalButton extends LitElement {
aria-modal="true"
>
<button
@click=${() => (this.open = false)}
@click=${() => {
this.resetForms();
this.open = false;
}}
class="pf-c-button pf-m-plain"
type="button"
aria-label="Close dialog"