don't boost anchor tags with a target attribute

addresses https://github.com/bigskysoftware/htmx/issues/593
This commit is contained in:
carson 2021-11-12 16:48:13 -07:00
parent 1d62a92cd2
commit ee2ed10cfa

View File

@ -968,7 +968,7 @@ return (function () {
}
function boostElement(elt, nodeData, triggerSpecs) {
if ((elt.tagName === "A" && isLocalLink(elt)) || elt.tagName === "FORM") {
if ((elt.tagName === "A" && isLocalLink(elt) && elt.target === "") || elt.tagName === "FORM") {
nodeData.boosted = true;
var verb, path;
if (elt.tagName === "A") {