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.
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 addinghx-target="this"
on the item, which is the default value.