gifted-appointment-5037
04/24/2023, 7:19 PMgifted-appointment-5037
04/24/2023, 7:20 PMgifted-appointment-5037
04/24/2023, 7:23 PMgifted-appointment-5037
04/24/2023, 7:23 PMbitter-machine-55943
04/24/2023, 7:26 PMgifted-appointment-5037
04/24/2023, 7:27 PMgreat-cartoon-12331
04/24/2023, 8:03 PMgreat-lifeguard-29000
04/25/2023, 5:49 AM<circle cx="50" cy="50" fill="lightgray" hx-post="/svg/canvas/circle" hx-swap="outerHTML" r="20" stroke-width="4" stroke="#1c87c9"></circle>
). When I return the following from the /svg/canvas/circle
endpoint on the click event <circle cx="60" cy="60" fill="lightgray" hx-post="/svg/canvas/circle" hx-swap="outerHTML" r="30" stroke-width="4" stroke="#ff0000"></circle>
the element just disappears from the canvas. I can only get the image update to work if I target the entire <svg>
element and replace that.steep-oil-94824
04/25/2023, 7:43 AM<button
hx-post="{{ path('app_installation_update', {'id': installation.id}) }}"
hx-target="body"
hx-on="
htmx:beforeRequest: this.querySelector('svg').classList.add('animate-spin')
htmx:afterRequest: this.querySelector('svg').classList.remove('animate-spin')
"
>
{% include 'icons/sync.html.twig' with { 'size': 24, 'class': 'stroke-gray-800'} %}
</button>
The SVG starts spinning, But I get the following error:
peError: internalData.onHandlers is not iterable
at deInitNode (htmx.js:907:1)
at cleanUpElement (htmx.js:915:1)
at htmx.js:917:61
at forEach (htmx.js:375:1)
at cleanUpElement (htmx.js:917:1)
at htmx.js:917:61
at forEach (htmx.js:375:1)
at cleanUpElement (htmx.js:917:1)
at htmx.js:917:61
at forEach (htmx.js:375:1)
Could somebody point me to the right direction?mysterious-toddler-20573
04/25/2023, 1:19 PMenough-petabyte-50314
04/25/2023, 1:58 PMproud-librarian-99598
04/25/2023, 3:01 PMcreateElementNS()
instead of createElement()
, but I don’t know if we could somehow have htmx do that.gorgeous-airport-54386
04/25/2023, 3:14 PMgorgeous-airport-54386
04/25/2023, 3:14 PMmysterious-toddler-20573
04/25/2023, 3:28 PMbillions-window-36824
04/25/2023, 6:39 PMbillions-window-36824
04/25/2023, 6:39 PMmagnificent-barista-99118
04/25/2023, 6:40 PMminiature-lizard-24702
04/25/2023, 8:15 PMminiature-lizard-24702
04/25/2023, 8:15 PMbillions-window-36824
04/25/2023, 8:17 PMhttps://cdn.discordapp.com/attachments/725789747212976259/1100515874722545804/image.png▾
miniature-lizard-24702
04/25/2023, 8:17 PMminiature-lizard-24702
04/25/2023, 8:17 PMbillions-window-36824
04/25/2023, 8:17 PMminiature-lizard-24702
04/25/2023, 8:18 PMminiature-lizard-24702
04/25/2023, 8:18 PMbillions-window-36824
04/25/2023, 8:18 PMminiature-lizard-24702
04/25/2023, 8:18 PMbillions-window-36824
04/25/2023, 8:18 PMminiature-lizard-24702
04/25/2023, 8:19 PM