Skip to content

template x-if support #1

@josh-tt

Description

@josh-tt

Hi there, just checking out your plugin. Nice! I've been working on something similar recently (though without user configurable templates) and have found that setting x-init with next tick seems to work for getting transitions working within an x-if/for.

Is that something you might consider adding as it seems that I can't get the transitions working within the template with yours.

The trick that worked for me was doing this when applying transition attributes:
element.setAttribute('x-init', $nextTick(() => {${showString} = true}));

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions