Skip to content

Commit

Permalink
Close #3516: fix regression in repeated appendTab()s when navbarMenu(…
Browse files Browse the repository at this point in the history
…) is present
  • Loading branch information
cpsievert committed Sep 30, 2021
1 parent 0fc861a commit d58a159
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions inst/www/shared/shiny.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions inst/www/shared/shiny.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/shared/shiny.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions inst/www/shared/shiny.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions srcts/src/shiny/shinyapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,9 @@ class ShinyApp {
// loop through all existing tabs, find the one with highest id
// (since this is based on a numeric counter), and increment

$tabset.find("a[data-toggle='tab']").each(function () {
const $tab = $(this);
// TODO: make sure this works for BS4+ dropdown items
$tabset.find("> li").each(function () {
const $tab = $(this).find("> a[data-toggle='tab']");

if ($tab.length > 0) {
// remove leading url if it exists. (copy of bootstrap url stripper)
Expand Down

0 comments on commit d58a159

Please sign in to comment.