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 event="both" does not work if element get focus state by clicking on it #7260

Closed
Luko248 opened this issue Sep 27, 2024 · 6 comments · Fixed by #7288
Closed

Tooltip event="both" does not work if element get focus state by clicking on it #7260

Luko248 opened this issue Sep 27, 2024 · 6 comments · Fixed by #7288
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Luko248
Copy link

Luko248 commented Sep 27, 2024

Describe the bug

If I se "tab" case, it perfectly fowks for hover or focus, but if I try click on element, tooltip will dissapier, when i leave trigger element with cursor viz picture.

Reproducer

No response

System Information

System: Windows 10, Browsers: all npmPackages: primereact

primereact: 10.8.3
react: 18.2.0

Steps to reproduce the behavior

tooltip

Expected behavior

When user set event="both", it must show tooltip on hover and when user focus input, it must be still visible, if user leave input / whatever with curssor.

@Luko248 Luko248 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 27, 2024
@sja-cslab
Copy link
Contributor

@melloware my guess is, that hover-out will trigger the hide event

@Luko248
Copy link
Author

Luko248 commented Sep 27, 2024

@melloware Yes, I think so. Is it possible to fix it in next release?

@sja-cslab
Copy link
Contributor

@Luko248 you're more than welcome to open a PR

@melloware
Copy link
Member

@Luko248 is this a duplicate of #5727 ?

@sja-cslab
Copy link
Contributor

@melloware no its similar but not a dupe. However fixing the one COULD fix the other one too.

The difference is, that on #5727 we're talking about tooltips on two inputs with hover/focus, this issue here is about a single input that has both events set

@melloware
Copy link
Member

Understood i will mark this as a bug.

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 27, 2024
@melloware melloware added this to the 10.8.4 milestone Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants