dominicbarnes/deku-forms

input labels should be associated by default

stephenmathieson opened this issue · 3 comments

using this library creates accessibility problems with inputs. seems like we can pass id= to the input to fix this, but 9/10 times we don't need ids on our inputs. any chance deku-forms could do something like:

const inputId = input.id || generateRandomId()

so that this always works?

Funny you should mention that, I considering doing that over the weekend when I was working on something else. It shouldn't be that hard to accomplish.

This is now the case in v1.7.0

awesome, thanks dude!