Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: stop focusing on tooltip when displayed (#3515)
## Description When the tooltip is displayed it becomes focused so it can be dismissed by pressing the _escape_ key. However, by focusing the tooltip, several issues occur on the apps using this lib. In this pr, based on this [comment](#2914 (comment)), I replaced the dismissing handling from the `onKeyDrown` prop for a event listener ## Related Issue [Issues/#3063](#3063) ## Motivation and Context This issue was afecting our product since when mousing over a chart, we can no longer edit a pre focused input. Other users have complained about similar issues like closing of modals (which close on blur event) ## How Has This Been Tested? I tested the behaviour manualy using the storybook. I didn't add any test since I didn't add a new feature. ## Screenshots (if appropriate): ## Types of changes - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: - [X] My code follows the code style of this project. - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [X] All new and existing tests passed.
- Loading branch information