shinyMobile
shinyMobile copied to clipboard
[bug] clash with DT package when swipeable is TRUE
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
For those interested, I have also asked a question on SO: https://stackoverflow.com/questions/62225256/dt-shinymobile-clash-when-swipeable-is-true
As you can see, this is not the only issue with DT: none of the filter options/ searchbar appear correctly.
Should I file an issue on DT's GitHub?
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
ok, thanks
Any news on this?