mysterious-toddler-20573
01/31/2022, 6:18 PMbland-coat-6833
01/31/2022, 6:21 PMacoustic-lawyer-26558
01/31/2022, 6:48 PMbland-coat-6833
01/31/2022, 7:33 PMacoustic-lawyer-26558
01/31/2022, 8:36 PMhundreds-camera-24900
01/31/2022, 8:38 PMhundreds-camera-24900
01/31/2022, 8:38 PMacoustic-lawyer-26558
01/31/2022, 8:41 PMhundreds-camera-24900
01/31/2022, 8:43 PMhundreds-camera-24900
01/31/2022, 8:43 PMhundreds-camera-24900
01/31/2022, 8:44 PMbreezy-finland-10196
01/31/2022, 8:45 PMbreezy-finland-10196
01/31/2022, 8:45 PMmysterious-toddler-20573
01/31/2022, 8:46 PMmysterious-toddler-20573
01/31/2022, 8:46 PMbreezy-finland-10196
01/31/2022, 8:50 PMbreezy-finland-10196
01/31/2022, 8:51 PMpowerful-evening-99811
01/31/2022, 10:05 PMstocky-dusk-7861
02/01/2022, 1:00 AMtemplate tag is a thing and won’t render automatically, huhstocky-dusk-7861
02/01/2022, 1:01 AMmysterious-toddler-20573
02/01/2022, 6:36 AMmysterious-toddler-20573
02/01/2022, 6:36 AMmysterious-toddler-20573
02/01/2022, 6:36 AMproud-guitar-95305
02/01/2022, 1:02 PMmysterious-toddler-20573
02/01/2022, 1:05 PMproud-guitar-95305
02/01/2022, 1:17 PMwhite-motorcycle-95262
02/01/2022, 8:29 PM<form
hx-get="/endpoint/"
hx-target="#content"
_="
on htmx:afterSwap from me
toggle .a .b on #c
end
"
>
<input type="search">
</form>
but it seems like afterSwap is sent by the target, not the trigger. This search form is in my navbar so htmx:afterSwap from #content would do the toggling on most every click on the webpage (not desired). I only want to do the toggling 1) after a form submission and 2) after the content has been swapped.
EDIT: Ended up going with on htmx:afterOnLoad from me and that seems to workbland-coat-6833
02/02/2022, 12:21 AMafterSwap has the requesting element as its elt property.white-motorcycle-95262
02/02/2022, 1:31 AMafterSwap itself. Trying to figure out what to listen for that is 1) send by the requesting element that 2) says that everything is donebitter-beard-2325
02/02/2022, 2:33 PM