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

[bug] material_button : observe won't works with renderUI #106

Open
bilbaoba opened this issue Feb 4, 2020 · 1 comment
Open

[bug] material_button : observe won't works with renderUI #106

bilbaoba opened this issue Feb 4, 2020 · 1 comment

Comments

@bilbaoba
Copy link
Contributor

bilbaoba commented Feb 4, 2020

Hi,

It seems observe won't work with renderUI :

library(shiny)
library(shinymaterial)

ui <- material_page(
  title = "Test",
  material_row(
    material_button("test", "Observe works with material_button"),
    uiOutput("renderUI_material_button")
  )
)

server <- function(input, output){
  
  output$renderUI_material_button <- renderUI({
    material_button("test2", "Observe don't works with renderUI material_buttons")
  })
  
  observeEvent(input$test, {
    print('Material works !')
  })
  
  observeEvent(input$test2, {
    print('Render UI material buttons works !')
  })
  
}

shinyApp(ui, server)

Thanks

@crissthiandi
Copy link

Hi, i had this problem. No happen with default shiny button.

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

2 participants