[Bug]: Interactive elements inside of Dropdown's titleText prop do not work correctly #16987
Open
2 tasks done
Labels
adopter: product
Work-stream that directly helps a Product team.
component: dropdown
package: @carbon/react
@carbon/react
role: dev 🤖
severity: 3
https://ibm.biz/carbon-severity
type: bug 🐛
Package
@carbon/react
Browser
Chrome
Package version
1.60.3
React version
16.14.0
Description
When using a Toggletip inside of the node passed to the titleText prop of a Dropdown, the Toggletip refuses to open and instead simply passes focus to the Dropdown when clicked.
My use case is that I would like to have a tooltip next to the label for a dropdown and inside that tooltip I want to provide a link to some documentation.
A valid workaround is instead of using the titleText prop on the Dropdown, simply use a FormLabel as a sibling to the Dropdown.
Reproduction/example
https://stackblitz.com/edit/github-c68srd-hwqb9s?file=src%2FApp.jsx&preset=node=
Steps to reproduce
Suggested Severity
None
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: