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
ChainedSelect widget generates attributes (class=chained-fk, and some data-attributes) that's later picked-up by the jQuery functions of django-smart-select.
Widget attributes for some reason does not render in the template when using django-crispy-forms + tailwind.
Found out that attributes are generated differently on <select>: field|build_attrs vs {% include "tailwind/layout/attrs.html" ... %}.
Replaced tailwind/layout/select.html so that it uses Django's original template (plus some modifications so that variables match), and additional attributes are still not rendering.
Where could the attributes from ChainedSelect have gone?
Additional
class=chained-fk
anddata-*
attributes from the widgetChainedSelect
(https://github.com/jazzband/django-smart-selects/blob/master/smart_selects/widgets.py#L54) does not render. They're needed attributes sobindfields.js
would work properly.Tried @Thutmose3's branch (#163) as well, with no luck.
Here's what I understand so far:
<select>
:field|build_attrs
vs{% include "tailwind/layout/attrs.html" ... %}
.tailwind/layout/select.html
so that it uses Django's original template (plus some modifications so that variables match), and additional attributes are still not rendering.Where could the attributes from
ChainedSelect
have gone?cc: @RJAA-25
The text was updated successfully, but these errors were encountered: