Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

apfritts
Copy link

@apfritts apfritts commented Apr 21, 2022

Hi @jasongaare!

Thank you for this wonderful little tooltip library! We're going to use it in our app and needed a few tweaks to make it work the way we needed. I tried to keep the behavior of the tooltip the same and added some additional properties to control the new functionality.

  • Switch to fire onClose when the background is tapped
  • Switch to allow background interactions
  • Switch to prevent users from closing the tooltip but not actually interacting with the child content
  • Reduce the number of times we measure the UI elements when placement !== 'top'

Please let me know if you'd like any changes or think something shouldn't be part of this library. 💃🏻

* Switch to fire onClose when when the background is tapped
* Switch to allow background interactions
* Switch to prevent users from closing the tooltip but not actually interacting with the child content
Reduce number of times we measure the UI elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.