Closed ShinyFabio closed 1 year ago
Sorry for my late answer. I can reproduce the problem, bsModal
should not be placed inside glide()
otherwise the modal HTML is inserted inside the glide div instead of the root div, and styling and display is not right anymore.
Unfortunately I don't see what I could do about it, I cannot really work on complex CSS rules to handle this particular use case (plus shinyBS
doesn't really seem to be developed anymore ?)...
Ok it's not a big issue. The only problem could be the readability of the code. However could be useful for others! Maybe you can highlight this minor issue somewhere (like in the description).
Hi, I've found a problem using the
bsModal()
from theshinyBS
package. Basically bsModals can be used but the code for the modal must stay outside theglide()
function. Here's a reproducible example:And here's a working example where I moved
bsModal
outside the glide function:I tried to render the bsmodal inside a
renderUI()
function but the problem still persists if I put theuiOutput
inside the glide function. It seems a minor problem (I can just move the bsmodal outside glide) but that's true for small modals. I use DataEditR package that uses a shinymodule with many options. The problem is that the ui part of the shinymodule contains both the trigger button and the bsModal and so can't be outside the glide function.