diff --git a/package.json b/package.json
index e4e3074..5183ecb 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@tp/tp-form",
- "version": "1.0.1",
+ "version": "1.1.0",
"description": "",
"main": "tp-form.js",
"scripts": {
diff --git a/tp-form.js b/tp-form.js
index 76eec7b..6124c06 100644
--- a/tp-form.js
+++ b/tp-form.js
@@ -168,7 +168,7 @@ class TpForm extends LitElement {
// Also go through the form's native elements.
for (let i = 0, li = this._nativeElements.length; i < li; i++) {
const el = this._nativeElements[i];
- // Skip native controls that are wrapped by custom elements already registerd (e.g. )
+ // Skip native controls that are wrapped by custom elements already registered (e.g. )
if (!this._useValue(el) ||
(this._isWrapped(el) && json[el.name])) {
continue;
@@ -255,6 +255,17 @@ class TpForm extends LitElement {
item.control.reset();
}
}
+
+ // Also go through the form's native elements.
+ for (let i = 0, li = this._nativeElements.length; i < li; i++) {
+ const el = this._nativeElements[i];
+ // Skip native controls that are wrapped by custom elements already registered (e.g. )
+ if (this._isWrapped(el)) {
+ continue;
+ }
+
+ el.value = '';
+ }
}
focusFirstControl() {