notificationItem : href does not work
mick-weber opened this issue · 1 comments
mick-weber commented
Hello, I noticed that href
argument from notificationItem()
does not work. When clicked, it simply opens a new browser tab with a #
sign appended. This looks very similar to this issue. See reprex below.
if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(
leftUi = tagList(
bs4Dash::dropdownMenu(type = "notifications", badgeStatus = NULL,
icon = icon("envelope", lib = "font-awesome"),
headerText = "Contact us !",
bs4Dash::notificationItem(text = "Click here to reach us",
href = "www.google.com", # defined in utils_helpers.R
icon = icon("envelope", lib = "font-awesome"), status = "info")
)
)
),
sidebar = dashboardSidebar(),
controlbar = dashboardControlbar(),
footer = dashboardFooter(),
title = "dropdownMenu",
body = dashboardBody()
),
server = function(input, output) {
}
)
}
Thanks for this great package !
DivadNojnarg commented
Fixed in dev branch