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:
parent
b4d528a789
commit
c00f2907ea
|
@ -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"
|
||||
|
|
Reference in a new issue