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] closeOnClick property does not work. #3250

Closed
1 of 3 tasks
IvanKalinin opened this issue Jan 23, 2025 · 1 comment
Closed
1 of 3 tasks

[Tooltip] closeOnClick property does not work. #3250

IvanKalinin opened this issue Jan 23, 2025 · 1 comment
Labels

Comments

@IvanKalinin
Copy link

Description

The root property closeOnClick should determine if the tooltip should close when the trigger is clicked.
Instead passing closeOnClose={false} does not affect the behavior.

Link to Reproduction (or Detailed Explanation)

https://codesandbox.io/p/sandbox/ark-ui-tooltip-bug-z79crc

Steps to Reproduce

  1. Hover on the trigger.
  2. Click on the trigger.
  3. It closes the tooltip despite closeOnClick={false}

Ark UI Version

4.9.1

Framework

  • React
  • Solid
  • Vue

Browser

No response

Additional Information

No response

@segunadebayo
Copy link
Member

This is because closeOnClick and closeOnPointerdown are set to true by default. Please set them both to false to achieve the desired outcome.

We'll revise the defaults later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants