question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clicking on a link in Tooltip that is part of a Modal doesn't work

See original GitHub issue

from 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:closed
  • Created 4 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
briangleesoncommented, Feb 19, 2020

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.

1reaction
walkerpcommented, Feb 13, 2020

@emyarod I recreated the problem in a simple Modal in a Code sandbox --> https://codesandbox.io/s/tooltip-bug-issue-5349-vi32l

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found