Skip to content

External link confirmation dialog does not appear in Safari (grey screen instead of modal) #201

@parmsam

Description

@parmsam

When clicking a link in a shinychat message in Safari, the external link confirmation dialog introduced in #120 does not render. Instead, the page goes grey (the modal backdrop appears to render, but the dialog itself does not). Seems to happen in both the Python and R versions.

The same app behaves correctly in Chrome, Edge, and Firefox: the "External Link" modal shows up with the URL, "Open Link", "Cancel", and "Always open external links" options, as expected.

Related to #11 and #120.

R:

library(shiny)
library(shinychat)

ui <- bslib::page_fluid(
  chat_ui(
    "chat",
    messages = "Hello! Click this link to [wikipedia](https://wikipedia.org) to trigger the external link dialog."
  )
)

server <- function(input, output, session) {
}

shinyApp(ui, server)

Python:

from shiny.express import ui

chat = ui.Chat(id="chat")
chat.ui(
    messages=[
        "Hello! Click this link to [wikipedia](https://wikipedia.org) to trigger the external link dialog."
    ]
)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions