diff --git a/R/sysdata.rda b/R/sysdata.rda index 05e411533..53d328675 100644 Binary files a/R/sysdata.rda and b/R/sysdata.rda differ diff --git a/inst/bs3compat/js/bs3compat.js b/inst/bs3compat/js/bs3compat.js index 4f029dc71..85cfa255c 100644 --- a/inst/bs3compat/js/bs3compat.js +++ b/inst/bs3compat/js/bs3compat.js @@ -27,7 +27,12 @@ $(function() { var SELECTOR = '[data-toggle="tab"], [data-toggle="pill"], [data-bs-toggle="tab"], [data-bs-toggle="pill"]'; $(document).on(EVENT_KEY, SELECTOR, function(event) { event.preventDefault(); - $(this).tab("show"); + var $this = $(this); + // New (bs5+) tabs use only `data-bs-toggle`, so we provide fallback manually + if (!$this.attr("data-bs-toggle") && $this.attr("data-toggle")) { + $this.attr("data-bs-toggle", $this.attr("data-toggle")); + } + $this.tab("show"); }); function TabPlugin(config) {