Skip to content

OOB Swap doesn't handle transition: true argument #1524

@Hades32

Description

@Hades32

I want to be able to do <div id="alerts" hx-swap-oob="outerHTML transition:true">, which currently leads to the complete swap not working

htmx/src/htmx.js

Lines 759 to 766 in ca03dab

if (oobValue === "true") {
// do nothing
} else if (oobValue.indexOf(":") > 0) {
swapStyle = oobValue.substr(0, oobValue.indexOf(":"));
selector = oobValue.substr(oobValue.indexOf(":") + 1, oobValue.length);
} else {
swapStyle = oobValue;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions