shinyMobile icon indicating copy to clipboard operation
shinyMobile copied to clipboard

[bug] clash with DT package when swipeable is TRUE

Open Tixierae opened this issue 4 years ago • 6 comments

In the minimal reproducible example below (animated = FALSE, swipeable = TRUE), it is not possible to select a row from the table. It only becomes possible when setting animated to TRUE and swipeable to FALSE. That's a weird and unexpected clash (at least for me). Took me hours to identify the cause of the issue in my real app. I'm reporting it here so that it can be fixed -hopefully- and for other users in my case to save some time!

library(shiny);library(shinyMobile);library(DT)

shiny::shinyApp(
  ui = f7Page(
    f7TabLayout(
      f7Tabs(id='tabs',
        animated = FALSE,
        swipeable = TRUE,
        f7Tab(tabName ='1',
          DT::dataTableOutput('my_table')
        )
      ),
      navbar = f7Navbar(
        title = 'test'
      ),
    )
  ),
  server = function(input, output) {
    output$my_table = DT::renderDataTable(
      datatable(as.data.frame(c('a','b','c')),selection='single')
    )
  }
)

Package versions:

  • shiny_1.4.0.2
  • shinyMobile_0.7.0
  • DT_0.13

Tixierae avatar Jun 05 '20 22:06 Tixierae

For those interested, I have also asked a question on SO: https://stackoverflow.com/questions/62225256/dt-shinymobile-clash-when-swipeable-is-true

Tixierae avatar Jun 09 '20 08:06 Tixierae

As you can see, this is not the only issue with DT: none of the filter options/ searchbar appear correctly.

DivadNojnarg avatar Jun 09 '20 10:06 DivadNojnarg

Should I file an issue on DT's GitHub?

Tixierae avatar Jun 09 '20 10:06 Tixierae

I am afraid they won’t fix it since this is not related to DT itself. I have to check what is missing in Framework7

DivadNojnarg avatar Jun 09 '20 10:06 DivadNojnarg

ok, thanks

Tixierae avatar Jun 09 '20 10:06 Tixierae

Any news on this?

ercro avatar Oct 22 '20 19:10 ercro