Skip to content

Transition no longer maintaining class specified in enterTo at end of transition. #2991

Closed
@tomelliot

Description

@tomelliot

What package within Headless UI are you using?
@headlessui/react

What version of that package are you using?

v1.7.18

What browser are you using?

Chrome Version 121.0.6167.160 (Official Build) (arm64)

Reproduction URL

repro

Describe your issue

A <Transition> that would previously fade out and stay at opacity-0 no longer stays at opacity-0 at the end of the transition. After fading out it pops back to full visibility (the opacity-0 class is removed).

        <Transition
          appear={true}
          show={true}
          enter="transition-opacity ease-in-out duration-1000"
          enterFrom="opacity-100"
          enterTo="opacity-0"
          aria-hidden="true"
        >
          <div>
            <CheckCircleIcon className={clsx("h-5 w-5 text-green-500")} />
          </div>
        </Transition>

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