-
Couldn't load subscription status.
- Fork 61
Open
Description
Additional class=chained-fk and data-* attributes from the widget ChainedSelect (https://github.com/jazzband/django-smart-selects/blob/master/smart_selects/widgets.py#L54) does not render. They're needed attributes so bindfields.js would work properly.
Tried @Thutmose3's branch (#163) as well, with no luck.
Here's what I understand so far:
- 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_attrsvs{% include "tailwind/layout/attrs.html" ... %}. - Replaced
tailwind/layout/select.htmlso 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
Metadata
Metadata
Assignees
Labels
No labels