-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link within Tooltip within Modal does not function properly #4600
Comments
Whoa this is an interesting situation! My guess:
|
Hi 👋 it's a side effect of a third-party module, called |
@asudoh which component do I put the |
It's |
This change eliminates the need for application to put focus sentinel by having `<Modal>`, `<ComposedModal>` and `<FloatingMenu>` automatically put the focus sentinels. This change also add support for reverse-focus-wrap feature to `<Modal>` and `<ComposedModal>`, without needing using 3rd-party `focus-trap-react` library. This helps applications hitting adverse side-effects that `focus-trap-react` library causes (e.g. carbon-design-system#3021, carbon-design-system#3665 and carbon-design-system#4600). Fixes carbon-design-system#3817. Fixes carbon-design-system#4036. Fixes carbon-design-system#4600.
This change eliminates the need for application to put focus sentinel by having `<Modal>`, `<ComposedModal>` and `<FloatingMenu>` automatically put the focus sentinels. This change also add support for reverse-focus-wrap feature to `<Modal>` and `<ComposedModal>`, without needing using 3rd-party `focus-trap-react` library. This helps applications hitting adverse side-effects that `focus-trap-react` library causes (e.g. #3021, #3665 and #4600). Fixes #3817. Fixes #4036. Fixes #4600.
[Link/Tooltip/Modal]: Link within Tooltip within Modal does not function properly
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
When a
Link
within aTooltip
within aModal
is clicked, nothing happens. This seems to only happen with aLink
that is nested within aTooltip
nested within aModal
.This issue is related to the
Link
,Tooltip
andModal
components.When a
Link
(nested within aTooltip
within aModal
) is clicked, specifcally aLink
with atarget="_blank"
attribute, I expect a new tab to open in the browser with a URL equal to thehref
attribute on thatLink
. Instead, when theLink
(nested within aTooltip
within aModal
) is clicked, nothing happens. No new tab is opened. No browser redirection occurs. I would like theLink
component to work properly when nested within aTooltip
within aModal
.Chrome Version 78.0.3904.87 (Official Build) (64-bit)
Watson Assistant
Steps to reproduce the issue
Link
that's nested within aTooltip
within aModal
Modal
Tooltip
Link
Link
is clickedReduced Test Case:
https://codesandbox.io/embed/codesandbox-owuet
The text was updated successfully, but these errors were encountered: