ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

shinyBS conflict with jquery #90

Open istemper opened 7 years ago

istemper commented 7 years ago

I am using shinyBS to support collapsible panels, and I am also loading a jquery.min file (found here: http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js) to support fancybox popups.

I have the jquery_min file saved locally and load it via: tags$script(src = "jquery_min.js"),

However, when I load the jquery file, it conflicts with the shinyBS jquery and causes many UI failures.

Is there a way to prevent this conflict?

Thanks

FlorianWanders commented 5 years ago

A bit late to the game, but maybe useful for future reference: if you load your jquery library in no-conflict mode it should work. See https://stackoverflow.com/a/1566644/4798582

FlorianWanders commented 5 years ago

Whereas this solved the problem on my laptop, errors remained on server. Switching to shiny internal modals did the trick. See https://shiny.rstudio.com/reference/shiny/latest/modalDialog.html