You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using is_external=True in an rx.link inside components such as hover_card and tooltip, the component fails to render. However, replacing is_external=True with target="_blank" allows the component to render correctly, enabling the link to open in a new tab as expected. The Reflex documentation recommends is_external=True as a modern replacement for target="_blank", yet this implementation leads to rendering issues in advanced components, while target="_blank" works as intended.
To Reproduce
Use the Bug Code Example below with is_external=True on an rx.link inside hover_card.
Attempt to render the component.
Observed behavior: The component does not render.
Replace is_external=True with target="_blank" as shown in the Functional Code Example below.
Observed behavior: The component renders correctly, and the link opens in a new tab.
Expected behavior
The expected behavior is for is_external=True to render the component as target="_blank" does, without causing any rendering issues.
Screenshots
Please see the attached screenshots showing:
The error when using is_external=True
The successful rendering using target="_blank"
Specifics:
Python Version: Python 3.10.15
Reflex Version: 0.6.4
OS: Darwin 24.1.0 arm64
Browser: [Version del navegador – completa manualmente]
Additional context
This issue appears when using is_external=True in hover_card or tooltip. Reflex documentation encourages the use of is_external=True as a best practice, but the current implementation is not functional in these specific components.
The text was updated successfully, but these errors were encountered:
is_external = True is implicitly mapped to target= rx.cond(True, "_blank", ""). Issue is with the cond statement which is surprising.
If you modify your code to
Describe the bug
When using
is_external=True
in anrx.link
inside components such ashover_card
andtooltip
, the component fails to render. However, replacingis_external=True
withtarget="_blank"
allows the component to render correctly, enabling the link to open in a new tab as expected. The Reflex documentation recommendsis_external=True
as a modern replacement fortarget="_blank"
, yet this implementation leads to rendering issues in advanced components, whiletarget="_blank"
works as intended.To Reproduce
is_external=True
on anrx.link
insidehover_card
.is_external=True
withtarget="_blank"
as shown in the Functional Code Example below.Code/Link to Repo
Bug Code Example (
is_external=True
)Functional Code Example (
target="_blank"
)Expected behavior
The expected behavior is for
is_external=True
to render the component astarget="_blank"
does, without causing any rendering issues.Screenshots
Please see the attached screenshots showing:
is_external=True
target="_blank"
Specifics:
Additional context
This issue appears when using
is_external=True
inhover_card
ortooltip
. Reflex documentation encourages the use ofis_external=True
as a best practice, but the current implementation is not functional in these specific components.The text was updated successfully, but these errors were encountered: