aw-front-helpers 2.5.6 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -180,6 +180,7 @@ export default class FormControl {
180
180
  error.classList.remove(this._options.classIsError);
181
181
  error.parentNode.removeChild(error);
182
182
  });
183
+ el.removeAttribute('aria-describedby');
183
184
  } else {
184
185
  const isErrors = [...this._form.querySelectorAll(`${this._options.classIsError}`)];
185
186
  const currentErrors = [...this._form.querySelectorAll(`.${this._options.classErrorElement}`)];
@@ -189,6 +190,9 @@ export default class FormControl {
189
190
  isErrors.forEach(error => {
190
191
  error.classList.remove(this._options.classIsError);
191
192
  });
193
+ this._domForm.els.forEach( input => {
194
+ input.removeAttribute('aria-describedby');
195
+ });
192
196
  }
193
197
  }
194
198
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",