Skip to content
Discussion options

You must be logged in to vote

It's a weird requirement, I must admit, however, you shouldn't need to do complicate stuff.
The issue is that collapse doesn't implement a proper clean up face as it could do.
Basically, it just misses

        cleanup(() => {
            delete el._x_transition
            el.style.removeProperty('overflow')
            el.style.removeProperty('height')
            if (! el._x_isShown) el.style.display = 'none'
        })

As a temporary workaround, you can do something like delete this.$el._x_transition; this.$el.style.removeProperty('overflow'); this.$el.style.removeProperty('height'); if (! this.$el._x_isShown) this.$el.style.display = 'none' after this.$el.removeAttribute("x-collapse")

A…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@StefanVesper
Comment options

@StefanVesper
Comment options

@philwolstenholme
Comment options

Answer selected by StefanVesper
Comment options

You must be logged in to vote
2 replies
@StefanVesper
Comment options

@SimoTod
Comment options

SimoTod Dec 1, 2021
Collaborator

Comment options

You must be logged in to vote
7 replies
@ekwoka
Comment options

@timogwl
Comment options

@ekwoka
Comment options

@timogwl
Comment options

@ekwoka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants