79611305

Date: 2025-05-07 19:42:31
Score: 1
Natty:
Report link

I couldn't find a way to re-initiate django-autocomplete-ligth, as you asked, but found a workaround that solved the issue:

htmx.on('htmx:afterSettle', (e) => {
  const selElement = $('#id_of_must_hide_select_element')
  if (selElement) {
    selElement.addClass('select2-hidden-accessible')
  }
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leonardo Checon Dantas