New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fill-in doesn't work for array input names #47
Comments
That sounds like an oversight, I'll happily take a PR which has better behaviour in this case. |
Sure, I'll try to get you something today! |
glenjamin
added a commit
that referenced
this issue
Jun 12, 2016
Use arbitrary selector in `fill-in` - Issue #47
Thanks @glenjamin! |
Released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a form with multiple inputs sharing the name
"members[]"
so that their values will be collected into a vector when the form data is received by ring. I found that when I usefill-in
to fill in one of those inputs (using a selector specific to that one), Kerodon was filling in all of the inputs, not just the one. This turned out to be becauseimpl/field-to-selector
matches by:name
instead of using the more specific selector I had provided.I can work around this by providing a unique id for each of the inputs (
impl/field-to-selector
checks for:id
before going to:name
). However, is there some reason why we can't match inputs with any arbitrary selector?The text was updated successfully, but these errors were encountered: