jqui_sortable order overwritten by selectizeInput drag and drop
gacolitti opened this issue · comments
Giovanni Colitti commented
The order inside jqui_sortable()
is lost when dragging and dropping choices for selectizeInput()
.
Here is a reproducible example:
library(shiny)
library(shinyjqui)
ui <- fluidPage(
jqui_sortable(
div(id = "lst",
selectizeInput("c", "Select", c("a", "b"),
multiple = TRUE,
options = list(plugins = list('drag_drop')))
)
),
br(),
br(),
br(),
verbatimTextOutput("lst_order")
)
server <- function(input, output, session) {
output$lst_order <- renderPrint({
str(input$lst_order$id)
})
}
shinyApp(ui, server)
What is causing this? Is there any way to avoid this behavior?