Clicking on a link in Tooltip that is part of a Modal doesn't work
See original GitHub issuefrom IBM’s @console/pal package.json using: “carbon-components”: “~10.9.0”, “carbon-components-react”: “~7.9.0”,
I have a Modal dialog with focusTrap
set to true.
I have a Tooltip with a Link. When I click on the link, it doesn’t go to that url.
Here’s the Tooltip code:
<Tooltip
triggerText={null}
tabIndex={0}
direction='bottom'
>
<div style={{ fontSize: '.875rem' }}>
<span>{t('resource-group-info')}</span>
<br></br><br></br>
<Link href='https://cloud.ibm.com/docs/resources?topic=resources-rgs' target='_blank' onClick={() => { }}>
{t('resource-group-doc-link')}
</Link>
</div>
</Tooltip>
If I set focusTrap={false} on the Modal it works fine. But then I can’t use the focusTrap on the Modal… which is needed.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Jquery modal window called from tooltip link not working
I have a javascript tooltip that I'd like to call a jquery modal window (by colorbox) when the link is clicked from within...
Read more >Tooltips - Bootstrap
Triggering tooltips on hidden elements will not work. ... When triggered from hyperlinks that span multiple lines, tooltips will be centered.
Read more >JavaScript · Bootstrap 3.3.6 Documentation - BootstrapDocs
The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds .modal-open to the <body> to override...
Read more >Tooltip | Components - BootstrapVue
Easily add tooltips to elements or components via the component or v-b-tooltip directive.
Read more >React Tooltip component - Material UI - MUI
By default disabled elements like <button> do not trigger user interactions so a Tooltip will not activate on normal events like hover. To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to say I also ran into this issue, but with an OverFlowMenu in the modal. The click events on the OverFlowMenuItem components werent working. Tried out
focusTrap=false
and it works fine. Good to see there’s a fix almost out for this.@emyarod I recreated the problem in a simple Modal in a Code sandbox --> https://codesandbox.io/s/tooltip-bug-issue-5349-vi32l