shinydashboardPlus
shinydashboardPlus copied to clipboard
box() closable visibility = hidden instead of display = none
When closable is set to TRUE the display of the box is set to "none". This causes the box to be invisible and any elements in the box to be out of the DOM. This can be problematic when the box contains inputs which then are automatically set to NULL.
Would it be possible to instead add an option that when closable is set to TRUE visibility is set to "hidden" such that the elements are still accessible in the DOM?
This behavior is controlled by AdminLTE JS code (template powering shinydashboard and shinydashboardPlus) and this is not convenient to change: https://github.com/ColorlibHQ/AdminLTE/blob/v2/dist/js/adminlte.js#L270
I would encourage you to look at: https://github.com/RinteRface/bs4Dash which is a more modern version for Shiny.