carbon
carbon copied to clipboard
[Bug]: Tooltip responding to click events
Package
carbon-components-react
Browser
Chrome
Package version
^10.50.0
React version
17.0.2
Description
When we click on a tooltip of icon button, the tooltip responds to click event. For eg- If there is a close icon button with tooltip and i click on the icon, the modal closes. if i click on the tooltip of the button, it behaves similarly and closes the modal. expected behaviour - Onclick should be disabled on tooltip.
Reproduction/example
https://codesandbox.io/s/strange-zeh-u5zis2?file=/src/index.js
Steps to reproduce
- Click on the icon, alert popup is displayed
- Click on tooltip, alert popup is displayed expected - On clicking of tooltip, alert popup should not be displayed.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate problems
Hey @haspal, thanks for reporting. I see the issue you are encountering. It seems like the issue is fixed in v11, so if possible I would recommend upgrading to the newest version. Let me know if you are able to do this