-
Beta Was this translation helpful? Give feedback.
Answered by
madtools
Mar 14, 2025
Replies: 1 comment
-
Hi, In your base template, put something like this so that when htmx is done loading new content, it will initialize django-select2 widget correctly.
Also, if you widget is in a modal, this line may help you (my modal has an id "modal"):
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
codingjoe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
In your base template, put something like this so that when htmx is done loading new content, it will initialize django-select2 widget correctly.
Also, if you widget is in a modal, this line may help you (my modal has an id "modal"):