You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to get the "RowReorder" extension to work and I'm noticing that if I double click on any cell in the first column (the column used for drag and drop) a glitch occurs where a duplicated row is inserted into the table, the double clicked row is attached to the cursor but cannot be dropped and additionally the following error is displayed in the console:
Uncaught TypeError: Cannot read properties of undefined (reading '0')
at P.isPlainObject.d (<anonymous>:4:12252)
at i._mouseUp (<anonymous>:4:5508)
at HTMLDocument.<anonymous> (<anonymous>:4:4073)
at HTMLDocument.dispatch (jquery.js:5430:27)
at v.handle (jquery.js:5234:28)
To reproduce you can use this example from r-bloggers
Versions of shiny and DT: shiny_1.8.1.1 and DT_0.33
Here's screen capture of the issue
My temporary solution is to set cancelable = TRUE option for rowReorder and add a JS callback to set a shinyInputValue cancel_row_reorder so that if input$cancel_row_reorder is triggered by pressing Esc then the datatable is rendered to its previous state.
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
Hello,
I'm attempting to get the "RowReorder" extension to work and I'm noticing that if I double click on any cell in the first column (the column used for drag and drop) a glitch occurs where a duplicated row is inserted into the table, the double clicked row is attached to the cursor but cannot be dropped and additionally the following error is displayed in the console:
To reproduce you can use this example from r-bloggers
Versions of shiny and DT:
shiny_1.8.1.1
andDT_0.33
Here's screen capture of the issue
My temporary solution is to set
cancelable = TRUE
option for rowReorder and add a JS callback to set a shinyInputValuecancel_row_reorder
so that ifinput$cancel_row_reorder
is triggered by pressing Esc then the datatable is rendered to its previous state.By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: