Skip to content

material_number_box initializes with label inside input  #124

@jameswcraig

Description

@jameswcraig

Hi @ericrayanderson

When using material_number_box inside renderUI, the number box is initialized with the label inside of the input. Any ideas how this can be resolved?

Thanks again for the great package.

Reprex:

library(shiny)
library(shinyjs)
library(shinymaterial)

ui <- material_page(
  useShinyjs(),
  uiOutput("numberBox")
)

server <- function(input, output, session){
  output$numberBox <- renderUI({
    render_material_from_server(
      material_number_box("num", label = "Number", min_value = 0.001, max_value = 1000, step_size = 0.1, initial_value = .1)
    )
  })
  
}

shinyApp(ui, server)

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