Skip to content

multiInput is no longer renders HTML tags inside values #545

@evgeniyftw

Description

@evgeniyftw

HTML Tags inside choiceNames in multiInput() are no longer resolved.
Reproducible example:


library(shiny)

ui <- fluidPage(
  fluidRow(uiOutput("mmm"))
)

server <- function(input, output) {

  output$mmm <- renderUI({
    shinyWidgets::multiInput(
      inputId = "colsToModel",
      label = all_cols[[1]],
      choices = NULL,
      # Here it stops working
      choiceNames = "<b>value1</b>",
      choiceValues = "value1",
      width = 'auto',
      options = list(
        non_selected_header = "Choose between:",
        selected_header = "You have selected:"
      ))
  })
}

shinyApp(ui = ui, server = server)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions