@websy/websy-designs 1.11.15 → 1.11.16

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.
@@ -2452,6 +2452,12 @@ class WebsyForm {
2452
2452
  clear () {
2453
2453
  const formEl = document.getElementById(`${this.elementId}Form`)
2454
2454
  formEl.reset()
2455
+ if (!this.options.fields) {
2456
+ this.options.fields = []
2457
+ }
2458
+ this.options.fields.forEach(f => {
2459
+ this.setValue(f.field, '')
2460
+ })
2455
2461
  this.loader.hide()
2456
2462
  }
2457
2463
  get data () {