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."
]
)
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:
Python: