From f938da05f4db96665fa52fb510142d9c0156df5d Mon Sep 17 00:00:00 2001 From: jlamanskygitt Date: Thu, 30 Apr 2026 10:45:05 -0400 Subject: [PATCH 1/2] Updated remove function to reset attributes --- src/components/form/dt-form-base.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/form/dt-form-base.js b/src/components/form/dt-form-base.js index ae396d3..c268ffd 100644 --- a/src/components/form/dt-form-base.js +++ b/src/components/form/dt-form-base.js @@ -400,6 +400,15 @@ export default class DtFormBase extends DtBase { if (this._field?.reset) { this._field.reset(); } + if (this.loading) { + this.setAttribute('loading', false); + } + if (this.saved) { + this.setAttribute('saved', false); + } + if (this.error) { + this.setAttribute('error', false); + } this.value = ''; this._setFormValue(''); } From d09796b8fcc9d8a0d9078f2076e2d02ff1bc19b5 Mon Sep 17 00:00:00 2001 From: jlamanskygitt Date: Fri, 1 May 2026 09:38:24 -0400 Subject: [PATCH 2/2] Changed reset's set attributes to remove attribute --- src/components/form/dt-form-base.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/form/dt-form-base.js b/src/components/form/dt-form-base.js index c268ffd..9c2c59c 100644 --- a/src/components/form/dt-form-base.js +++ b/src/components/form/dt-form-base.js @@ -401,13 +401,13 @@ export default class DtFormBase extends DtBase { this._field.reset(); } if (this.loading) { - this.setAttribute('loading', false); + this.removeAttribute('loading'); } if (this.saved) { - this.setAttribute('saved', false); + this.removeAttribute('saved'); } if (this.error) { - this.setAttribute('error', false); + this.removeAttribute('error'); } this.value = ''; this._setFormValue('');