zag icon indicating copy to clipboard operation
zag copied to clipboard

[form-utils] Form reset listeners not implemented in some machines

Open anubra266 opened this issue 3 years ago • 0 comments

  • [x] Move trackFormReset and trackFieldsetDisabled to @zag-js/form-utils

Machines without form reset listeners

  • [ ] Rating
  • [ ] Slider
  • [ ] Tags Input

How; In Activities

 trackFormReset(ctx) {
      return trackFormReset(dom.getInputEl(ctx), () => {
           ctx.value = ctx.initialValue
      })
},

// Add to activities
      activities: ["trackFormReset"],

anubra266 avatar Aug 08 '22 08:08 anubra266