Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Tooltip and vue transition are not working together #712

Closed
aleksey-hoffman opened this issue Feb 24, 2024 · 2 comments
Closed

[Bug]: Tooltip and vue transition are not working together #712

aleksey-hoffman opened this issue Feb 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@aleksey-hoffman
Copy link

aleksey-hoffman commented Feb 24, 2024

Environment

Latest

Link to minimal reproduction

Nan

Steps to reproduce

Add force-mount to the portal and wrap the content with Vue transition that has a transform property

  <TooltipPortal force-mount>
    <Transition name="tooltip-bottom">
      <TooltipContent
        v-bind="{ ...forwarded, ...$attrs }"
        :class="['ui-tooltip-content', props.class]"
        :side="side"
      >
        <slot />
      </TooltipContent>
    </Transition>
  </TooltipPortal>
.tooltip-bottom-enter-active,
.tooltip-bottom-leave-active {
  transition: all 0.3s ease;
}

.tooltip-bottom-enter-from,
.tooltip-bottom-leave-to {
  opacity: 0;
  transform: translateY(30px) scale(0.5);
}

Describe the bug

On enter transition, the tooltip flies from the top of the window

Screen.Recording.2024-02-24.at.10.40.20.mov

Expected behavior

No response

Context & Screenshots (if applicable)

No response

@aleksey-hoffman aleksey-hoffman added the bug Something isn't working label Feb 24, 2024
@Ericlm
Copy link

Ericlm commented Aug 1, 2024

I'm having the exact same issue as shown; how could I solve this problem ? 🙂

@chasegiunta
Copy link

Try wrapping the Transition component in an absolute positioned parent div

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants