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

Tooltip: Triggering any tooltip fails to set its own auto-zindex, and affects any other component's ability to set an auto-zindex #3144

Closed
adamshafer opened this issue Oct 20, 2022 · 5 comments
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team

Comments

@adamshafer
Copy link

Describe the bug

When running a site in localhost (dev mode) using npm run dev, activating a tooltip on any element shows the tooltip. However, the auto-zindex that usually happens on a tooltip is not occurring. After the first failed auto-zindex, any other component that might use an auto-zindex also fails to happen, causing odd layering problems on our site. I have tried this in our codebase and in a blank Vue 3 project using the standard create-vue setup.

When the site is compiled and served in a live environment, this problem does not occur. It is only occurring while in dev mode.

Reproducer

https://codesandbox.io/s/flamboyant-solomon-vk4uc7

PrimeVue version

3.17.0

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Please see the codesandbox link. For some reason this code won't run in codesandbox but will run locally.

Essentially if you activate a tooltip anywhere on any page, the auto-zindexing doesn't work, and it then breaks all other instances in which the auto-zindexing should occur... resulting in z-indexes messing up and content being in the wrong layers.

Expected behavior

As it used to, auto-zindex should work for Tooltips, and it should not affect other components ability to auto-zindex when working in a development environment.

@adamshafer adamshafer added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 20, 2022
@bahadirsofuoglu
Copy link
Contributor

Hi,
Link is not working

@adamshafer
Copy link
Author

I've uploaded my project to https://github.com/adamshafer/sandbox ... it will run locally, but for some reason doesn't run in the codesandbox.io environment.

@tugcekucukoglu
Copy link
Member

We could not replicate the issue. We clone the codesandbox but it's not working on the local. If the problem still persists, please create a working codesandbox or a repo.

Closing for now.

@tugcekucukoglu tugcekucukoglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Oct 25, 2022
@doodleincode
Copy link

doodleincode commented Nov 18, 2022

Possible to reopen this? I am also running into this issue in my project. Like @adamshafer , the issue presents itself while running in Vite's dev server, but generating a production build does not. I can also reproduce the issue using @adamshafer sandbox repo. The z-index seems to not get calculated and set in the dialog overlay.

Similar issue here that was also closed: #2659

@dinyo
Copy link

dinyo commented Nov 29, 2022

try #2468 for workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Cannot Replicate Issue could not be replicated by Core Team
Projects
None yet
Development

No branches or pull requests

5 participants