view_components
view_components copied to clipboard
Label `for` incorrect when using namespacing
Description
The generated label for attribute value does not respect the FormBuilder namespace: option
Reproduction
Working on a test case reduction. For now:
https://github.com/primer/view_components/pull/3698/files#diff-6928b1de62b9470db71cae1803a17ce881e7b1a820d2ffe24d3c01c73b97c5caR122
hello @myabc ! I see you're resolving a similar bug atm - will you also be creating a PR for this one?
@hellojanehere sorry for the slow response! Yes, I am still planning on submitting a PR. However I am anticipating it be a non-trivial change. The solution will most likely involve delegating field_id and name generation to the underlying FormBuilder.