You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, this is the API for label, hint, and error helpers: everything you give as extra options are going to end up as html attributes, except for a few given keys on each helper. For instance, the hint helper only uses hint_tag and hint from options, everything else is going straight to html options. Same for label and error.
Anyway, I see now that only label is not handling this correctly, I'm gonna fix it. Besides that, SimpleForm cannot guess what is html attribute, it only knows what is internal use and cleans up such options.
The
input
method only adds real attributes when creating the html output.For example
Will strip the label from the hash and only show the relevant attributes
Here is the bug
The other helper methods
label
,hint
andfull_errors
don't clean up the options hash and just pass everything through.For example
Will NOT clean up the options hash and then adds lots of extra stuff to the html output
The text was updated successfully, but these errors were encountered: