MrHopko
MrHopko

Reputation: 899

shinyDND with uiOutput not working

I am attempting to use shinyDND from the server side using uiOuput, renderUI and dragUI but the divs created are not draggable. Example:

  library(shiny)
  library(shinyDND)

  ui <- shinyUI(
    mainPanel(
      uiOutput("myUI"),
      dragUI("works","works")

    )
  )

  server = shinyServer(function(input, output,session) {
    output$myUI <- renderUI({
      dragUI("doesntwork","doesntwork")
    })
  })

  # Run the application 
  shinyApp(ui = ui, server = server)    

The dragUI element being created within the renderUI function is visible but not draggable. The dragUI element in the ui function is fine.

Any ideas?

Upvotes: 0

Views: 350

Answers (1)

MrHopko
MrHopko

Reputation: 899

This was a bug and has since been fixed

Upvotes: 1

Related Questions