carbon icon indicating copy to clipboard operation
carbon copied to clipboard

[Bug]: Tooltip responding to click events

Open haspal opened this issue 1 year ago • 1 comments

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

  1. Click on the icon, alert popup is displayed
  2. Click on tooltip, alert popup is displayed expected - On clicking of tooltip, alert popup should not be displayed.

Code of Conduct

haspal avatar Jul 19 '22 05:07 haspal

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

tw15egan avatar Jul 19 '22 15:07 tw15egan