How to close embedded modalDialog
I have modalDialog embedded into other modalDialog . When I run modalButton both of them closed. How to close only embedded modalDialog ? Now : Code : library(shiny) shinyApp( ui <- fluidPage( actionButton("one","Press") ), server <- function(input, output,session) { observeEvent(input$one,{ showModal(modalDialog( actionButton("two","Press 2"), footer = tagList( modalButton("Cancel") ))) }) observeEvent(input$two,{ showModal(modalDialog( "OKAY", footer = tagList( modalButton("Cancel") ))) }) }) Need : Im not sure what you want to display in modal but maybe you can have a look at the