Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 committed Sep 25, 2024
1 parent ba7b696 commit b8dbbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ var htmx = (function() {
function handlePreservedElements(fragment) {
forEach(findAll(fragment, '[hx-preserve], [data-hx-preserve]'), function(preservedElt) {
const id = getAttributeValue(preservedElt, 'id')
const value = getAttributeValue(preservedElt, 'hx-preserve')
const existingElement = getDocument().getElementById(id)
if (existingElement != null) {
if (preservedElt.moveBefore) { // if the moveBefore API exists, use it
// get or create a storage spot for stuff
Expand Down

0 comments on commit b8dbbdc

Please sign in to comment.