dreamRs / toastui

R htmlwidgets for ToastUI libraries: grid, calendar and chart
https://dreamrs.github.io/toastui
Other
83 stars 8 forks source link

Datagrid : Pasting data won't update input$xxxx_data #13

Closed jeanantoinedasilva closed 3 years ago

jeanantoinedasilva commented 3 years ago

Hello,

Here a reproducible example :

ui <- fluidPage(
  toastui::datagridOutput('data'),
  verbatimTextOutput('print')
)

server <- function(session, input, output){
  output$data <- toastui::renderDatagrid({
    toastui::datagrid(mtcars) %>%
      toastui::grid_editor(column = c('mpg', 'cyl', 'disp'))
  })

  output$print <- renderPrint({
    input$data_data
  })
}

shinyApp(ui, server)

Editing data by pasting won't update server side value input$data_data.

Thanks in advance for your help !

pvictor commented 3 years ago

Thanks for reporting the issue, if you re-install from GitHub it should be fixed. Let me know how it works for you.

Victor

jeanantoinedasilva commented 3 years ago

Thanks you very much for your reactivity !