summaryrefslogtreecommitdiffstatshomepage
path: root/www/static/src/htmx.js
diff options
context:
space:
mode:
authorCarson Gross <carson@bigsky.software>2024-10-02 21:09:37 -0600
committerCarson Gross <carson@bigsky.software>2024-10-02 21:09:37 -0600
commit56f801f69dbe123582bc393879e4a721b7b1e20a (patch)
tree49ddbb84880c03d173b3345e92ae11eabe4c9807 /www/static/src/htmx.js
parent2fc32b368c2c0b72c94d8194d1b2c840f079390b (diff)
downloadhtmx-56f801f69dbe123582bc393879e4a721b7b1e20a.tar.gz
htmx-56f801f69dbe123582bc393879e4a721b7b1e20a.zip
release prep
Diffstat (limited to 'www/static/src/htmx.js')
-rw-r--r--www/static/src/htmx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/static/src/htmx.js b/www/static/src/htmx.js
index c9465b07..1498c661 100644
--- a/www/static/src/htmx.js
+++ b/www/static/src/htmx.js
@@ -1464,7 +1464,7 @@ var htmx = (function() {
function restorePreservedElements() {
const pantry = find('#--htmx-preserve-pantry--')
if (pantry) {
- for (const preservedElt of pantry.children) {
+ for (const preservedElt of [...pantry.children]) {
const existingElement = find('#' + preservedElt.id)
// @ts-ignore - use proposed moveBefore feature
existingElement.parentNode.moveBefore(preservedElt, existingElement)