-
Notifications
You must be signed in to change notification settings - Fork 355
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
label_class ignored on collection_check_boxes #535
Comments
Thank you for the detailed report. We appreciate all feedback, but you've provided lots of useful information for us. On the odd chance that you have time to submit a pull request, feel free to do so. If you plan to submit a PR, just assign this issue to yourself (upper left of this page). Otherwise, we will look into it. |
It looks like the documentation has not been keeping up-to-date with the code. A number of options are not forwarded to the However, I believe I may have seen what's causing you a problem. Before I actually make any changes, can you please clarify which options you're trying to pass through to the check box and/or its label? |
For my use case, I need to pass |
Thanks. That helps clarify things. We can't change what I suspect the fix to #477 would help in your case. A block on |
A fix of #477 would definitely help me. As a matter of fact, my current workaround is to use |
I want to add additional classes to the checkboxes in a collection rendered with
collection_check_boxes
. According to the documentation, "Other options [than:label
,:hide_label
,:help
] will be forwarded to theradio_button
/check_box method
".But the class is not added to the checkboxes within the collection.
Digging into the code, the option is present in the call to
BootstrapForm::Inputs::InputsCollection#inputs_collection
. ButBootstrapForm::FormGroupBuilder#form_group_builder
filters:label_class
(amongst others) from options and this filtered options leak into the calling method. Or is this intended?Release used: 4.2.0
The text was updated successfully, but these errors were encountered: