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

Toast z-index is removed before toast animation is done #3050

Closed
sid-6581 opened this issue Sep 29, 2022 · 0 comments
Closed

Toast z-index is removed before toast animation is done #3050

sid-6581 opened this issue Sep 29, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@sid-6581
Copy link
Contributor

Describe the bug

#2434 fixed the problem with the z-index for toasts being removed while there are still more messages, but the z-index is still being removed too soon. Once the fade out animation starts, the z-index is removed, and the toast will be hidden behind whatever has a higher z-index. This can be seen on the PrimeVue website if you scroll down a little bit to make the header visible, then trigger a toast. Once the toast is supposed to fade out it just immediately pops behind the header.

Reproducer

No response

PrimeVue version

3.17.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Got to PrimeVue website to the Toast documentation.
  2. Scroll down the page a little bit to make the header visible.
  3. Click a button to show a toast.
  4. Wait for the toast to start fading out and watch it disappear behind the header.

Expected behavior

Z-index should remain in place until all toasts are completely gone and animations are done.

@sid-6581 sid-6581 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 29, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.17.1 milestone Oct 11, 2022
tugcekucukoglu added a commit that referenced this issue Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants