Skip to content

Commit

Permalink
Add settling class to settling elements in oob swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
aral committed Mar 16, 2024
1 parent cbb56ef commit 4119106
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,9 @@ var htmx = (function() {
swapWithStyle(swapStyle, target, target, fragment, settleInfo)

forEach(settleInfo.elts, function(elt) {
if (elt.classList) {
elt.classList.add(htmx.config.settlingClass)
}
triggerEvent(elt, 'htmx:oobAfterSwap', beforeSwapDetails)
})

Expand Down

0 comments on commit 4119106

Please sign in to comment.