Open thothal opened 3 years ago
Could you show the code to capture that error?
Took a while to track the error down, but here is a minimal reprex:
library(shiny)
library(shinybulma)
shinyApp(bulmaPage(bulmaNavbar()), function(...) {})
So it is the bulmaNavbar
item.
bulmaJS has an API for navbar. It's probably conflicting with the current implementation. By the way I don't manage to access to the bulmaJS doc anymore. I'll check later ;)
I tried that already, this is not the case. My guess is that bulmaJS
requires a .navbar-burger
and in abseince raises this error.
Try:
shinyApp(
bulmaPage(
bulmaNavbar(
bulmaNavbarBurger()
)
), function(...) {}
)
and the error is gone.
In many template I’v seen, the burger is included in the navbar template by default, only shown when screen size reaches a specific threshold. bulmaNavbarBurger should be internal to the template and not exported to the end user. As you mentioned, this would fix the issue.
bulma.js
(updated in #31) is raising an error as can be seen in the JS console: