-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(Tooltip): avoid stealing focus when dismissing with mouseclick #8820
fix(Tooltip): avoid stealing focus when dismissing with mouseclick #8820
Conversation
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: e425fcd 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60bf94a9f7eb020007c00291 😎 Browse the preview: https://deploy-preview-8820--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: e425fcd 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60bf94a938fd2b000812671f 😎 Browse the preview: https://deploy-preview-8820--carbon-components-react.netlify.app/iframe |
07cd72b
to
7cdebb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 Focus isn't stolen on close via click
correct.focus.on.click.mov
bump @dakahn when you have a chance! |
7cdebb0
to
e425fcd
Compare
Closes #8180
This PR updates the interactive tooltip's user initiated open/close logic to avoid stealing focus after dismissal via mouse click
Testing / Reviewing
Confirm that the interactive tooltip trigger does not steal focus only after the tooltip is dismissed by user click