Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

material_number_box initializes with label inside input #124

Open
jameswcraig opened this issue Aug 26, 2020 · 0 comments
Open

material_number_box initializes with label inside input #124

jameswcraig opened this issue Aug 26, 2020 · 0 comments

Comments

@jameswcraig
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant