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
In most cases you can control HTML attributes of the rendered fields via keyword arguments to the form field's __call__ method. This doesn't work right for RadioField (or probably anything that uses FieldList, where the keyword arguments are consumed by the wrapping <ul> element, and not passed on to the actual <input>s (or whatever the nested fields are):
With RadioField, the disabled attribute is put on the <ul>.
I think this is slightly tricky to solve, since users might want this behavior in some cases (eg to style an element by passing the class_ keyword argument). I'm willing to take a stab at a solution, but I'm not sure how best to approach it, so I'm open to ideas.
The text was updated successfully, but these errors were encountered:
In most cases you can control HTML attributes of the rendered fields via keyword arguments to the form field's
__call__
method. This doesn't work right forRadioField
(or probably anything that usesFieldList
, where the keyword arguments are consumed by the wrapping<ul>
element, and not passed on to the actual<input>
s (or whatever the nested fields are):For
SelectField
(for instance), thedisabled
attribute is applied to the<select>
.With
RadioField
, thedisabled
attribute is put on the<ul>
.I think this is slightly tricky to solve, since users might want this behavior in some cases (eg to style an element by passing the
class_
keyword argument). I'm willing to take a stab at a solution, but I'm not sure how best to approach it, so I'm open to ideas.The text was updated successfully, but these errors were encountered: