view_components icon indicating copy to clipboard operation
view_components copied to clipboard

Label `for` incorrect when using namespacing

Open myabc opened this issue 3 months ago • 2 comments

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

myabc avatar Sep 24 '25 18:09 myabc

hello @myabc ! I see you're resolving a similar bug atm - will you also be creating a PR for this one?

hellojanehere avatar Sep 29 '25 17:09 hellojanehere

@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.

myabc avatar Dec 11 '25 22:12 myabc