open-wc / form-participation

Helper, mixins, tools, and more for supporting your custom elements in participating in an ancestor form.
MIT License
53 stars 7 forks source link

feat(form-control): add multi-attribute validators #33

Closed calebdwilliams closed 1 year ago

calebdwilliams commented 1 year ago

Add the option for a validator to respond to multiple attributes

michaelwarren1106 commented 1 year ago

from our slack chat:

Do you think that going forward the default key in the validator object should be attributes or attribute? I think that having only one key makes the most sense, but a non-major bump would need a backwards compatible solution for this.

If the long term is attributes I think thats fine, as long as attribute still works in the near term. Once we 1.0.0 thats a good time to convert my stuff from attribute to attributes cuz all my versions are ^s so i'll get any minor updates automatically and dont want things to get borked