fix(core): update

This commit is contained in:
Philipp Kunz 2023-09-01 14:21:15 +02:00
parent 362bef15e3
commit 566a7ce148
2 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@design.estate/dees-catalog',
version: '1.0.180',
version: '1.0.181',
description: 'website for lossless.com'
}

View File

@ -166,6 +166,19 @@ export class DeesForm extends DeesElement {
submitButton.text = textStateArg;
}
/**
* resets the form
*/
reset() {
const inputChildren = this.getFormElements();
const submitButton = this.getSubmitButton();
for (const inputChild of inputChildren) {
inputChild.value = null;
}
this.setStatus('normal', 'Submit');
}
public async addBehaviours() {
// Use event delegation
this.addEventListener('keydown', (event: KeyboardEvent) => {