Skip to content

Seeing double selectizeInput #129

@mmoisse

Description

@mmoisse

When I use selectizeInput inside a material_page it duplicates the drop down menu, once in material style and once in the normal shiny style.

See below a minimal example:

library(shiny)
library(shinymaterial)

shinyApp(
  material_page(fluidPage(
    selectizeInput("foo", "Foo", choices = c(10,100)),
    textOutput("text")
  )),
  function(input, output, session) {
    output$text <- renderText({ input$foo })
  }
)

I don't have the problem when using selectizeInput indirectly with uiOutput

library(shiny)
library(shinymaterial)

shinyApp(
  material_page(fluidPage(
    uiOutput("TT"),
    textOutput("text")
  )),
  function(input, output, session) {
    output$TT<-renderUI({
      selectizeInput("foo", "Foo", choices = c(10,100))
    })
    output$text <- renderText({ input$foo })
  }
)

Session Info
shinymaterial_1.2.0.9000
shiny_1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions