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 Report][3.6.12] isHovering not defined before an actual hover #20150

Closed
kaplan512 opened this issue Jul 12, 2024 · 7 comments
Closed

[Bug Report][3.6.12] isHovering not defined before an actual hover #20150

kaplan512 opened this issue Jul 12, 2024 · 7 comments
Labels
working as intended The issue is working as intended

Comments

@kaplan512
Copy link

Environment

Vuetify Version: 3.6.12
Vue Version: 3.3.2
Browsers: Chrome 126.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

add <v-hover v-slot="{ isHovering, props }">
you should find that isHovering not defined and make any logic impossible

Expected Behavior

isHovering should be false when component mounted

Actual Behavior

isHovering is not defined which make some complex logic implementation impossible until element was actually hovered

Reproduction Link

https://play.vuetifyjs.com/#...

Other comments

Hi all! I found out that isHovering is not defined from the very beginning until it was actually hovered. I use some complex logic with element intersection on scroll and I need this to be true/false when component mounted

@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
@KaelWD KaelWD added the working as intended The issue is working as intended label Jul 12, 2024
@blalan05
Copy link
Member

so: !!isHovering, undefined is a falsey value.

@kaplan512
Copy link
Author

@blalan05 it should be, but it is not. It is ok for me if this would work like this (undefined == null == false), but any logic just ignored.
I think I should add some styles to be more prominent, but I don't want to create very complex example.
This issue also discussed here #19601

@blalan05
Copy link
Member

image

@KaelWD
Copy link
Member

KaelWD commented Jul 12, 2024

!!isHovering !== test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working as intended The issue is working as intended
Projects
None yet
Development

No branches or pull requests

3 participants