Closed datenrebell closed 4 months ago
{{ field.field.widget.attrs|flatatt }}
is there in select.html and select_option.html.
How would <option>
attributes be properly specified? According to the Mozilla documentation there are attributes like: disabled, label, selected and value. value and selected are already taken care of, but disabled and label not. So I think just removing the {{ field.field.widget.attrs|flatatt }}
from select_option.html might not be the best option.
@gldecurtins This works, Thanks!
@gldecurtins I just had a look at https://github.com/django-crispy-forms/crispy-tailwind/pull/120 and it seems to work. Found this issue afterwards... What would be the best fix for the package?
My Model:
My Form:
In my template {{form}} generate this:
With {{form|crispy}} django generate this: