PHACDataHub / django-htmx-autocomplete

A Django autocomplete component powered by htmx
MIT License
50 stars 4 forks source link

selecting an item swaps its inherited hx-target #47

Closed AlexCLeduc closed 1 year ago

AlexCLeduc commented 1 year ago

If your autocomplete component has an ancestor with an hx-target, it will inherit this property and selecting an item (hitting the toggle route) will swap on the ancestor's hx-target. We can try adding hx-target="this" on the item, which is the default value.