Skip to content

Commit 3bc4dac

Browse files
reverse order of push/replace
1 parent 994c705 commit 3bc4dac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/htmx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4671,8 +4671,8 @@ var htmx = (function() {
46714671
const requestPath = responseInfo.pathInfo.finalRequestPath
46724672
const responsePath = responseInfo.pathInfo.responsePath
46734673

4674-
const pushUrl = getClosestAttributeValue(elt, 'hx-push-url') || responseInfo.etc.push
4675-
const replaceUrl = getClosestAttributeValue(elt, 'hx-replace-url') || responseInfo.etc.replace
4674+
const pushUrl = responseInfo.etc.push || getClosestAttributeValue(elt, 'hx-push-url')
4675+
const replaceUrl = responseInfo.etc.replace || getClosestAttributeValue(elt, 'hx-replace-url')
46764676
const elementIsBoosted = getInternalData(elt).boosted
46774677

46784678
let saveType = null

0 commit comments

Comments
 (0)