mysterious-toddler-20573
09/18/2021, 2:42 AMmysterious-toddler-20573
09/18/2021, 2:43 AMancient-apple-84923
09/18/2021, 2:44 AMancient-apple-84923
09/18/2021, 2:44 AMmysterious-toddler-20573
09/18/2021, 2:57 AMmysterious-toddler-20573
09/18/2021, 2:57 AMmysterious-toddler-20573
09/18/2021, 2:57 AMmysterious-toddler-20573
09/18/2021, 2:57 AMancient-apple-84923
09/18/2021, 3:20 AMmost-jelly-15242
09/18/2021, 11:02 AMfrom: together with some modifiers in hx-trigger should work. I tried keyup from:#keywords changed delay:300ms and also keyup[event.target.id == 'keywords'] changed delay:300ms but neither is recognized and also the console doesn't show any errors.mysterious-toddler-20573
09/18/2021, 12:07 PMmysterious-toddler-20573
09/18/2021, 12:07 PMmost-jelly-15242
09/18/2021, 12:17 PMmysterious-toddler-20573
09/18/2021, 3:45 PMmost-jelly-15242
09/18/2021, 4:18 PMmost-jelly-15242
09/18/2021, 4:35 PMcold-morning-35868
09/19/2021, 2:33 PMhx-trigger="every 2s" is basically the same as using load polling with hx-trigger="load delay:2s", assuming in both cases a <div> is returned with the same trigger?mysterious-toddler-20573
09/19/2021, 2:40 PMmysterious-toddler-20573
09/19/2021, 2:41 PMmysterious-toddler-20573
09/19/2021, 2:41 PMbland-rainbow-1285
09/19/2021, 4:52 PMcold-morning-35868
09/19/2021, 9:22 PMmysterious-toddler-20573
09/19/2021, 9:53 PMmysterious-toddler-20573
09/19/2021, 9:54 PMmysterious-toddler-20573
09/19/2021, 9:54 PMcold-morning-35868
09/19/2021, 10:10 PMdisabled button with a spinner, and that polls a status view - which will swap it out again for a download button when the report is ready.
if the button is clicked it will retain focus, so on every swap of the button (every poll) it temporarily flashes (i assume because it temporarily loses focus and regains it again). is there any good way to prevent that?
html
<div id="generate_buttons"
class="btn-toolbar"
hx-get="{% url 'core:report-status' id=report.id %}"
hx-trigger="every 2s"
hx-swap="outerHTML">
<button type="submit" value="Submit" id="submit"
class="btn btn-primary disabled">
<span class="spinner-border spinner-border-sm" role="status"></span>
{% translate "Generating ..." %}</button>
</div>mysterious-toddler-20573
09/19/2021, 10:21 PMhx-preserve attribute, it should keep the button without flashing.cold-morning-35868
09/20/2021, 6:32 AMbillions-microphone-84331
09/20/2021, 11:14 AMhx-swap-oob is supposed to be taken into account on hx-boost-ed requests/responses? The behavior I have is that the out of band element is deleted in the dom, but not replaced with what is returned from the response.mysterious-toddler-20573
09/20/2021, 11:19 AM