Skip to content

Revert to pre-Bootstrap 5 nav bs3compat shimming - #336

Merged
cpsievert merged 2 commits into
masterfrom
bs3tabcompat
Jun 16, 2021
Merged

cpsievert merged 2 commits into
masterfrom
bs3tabcompat

Conversation

@cpsievert

@cpsievert cpsievert commented Jun 16, 2021 •

Copy link
Copy Markdown
Collaborator

In #304, I changed the overall approach to shimming Bootstrap's $.fn.tab jQuery plugin (I wanted to move away from assuming that it exists), but that approach won't work when tabs are shown programmatically (e.g., shinycoreci-apps/apps/213-tab-panels).

This reverts it to use the same .noConflict() approach we were using before in a way that works for Bootstrap 5. Originally, I thought that this approach wasn't going to work at all because Bootstrap 5 doesn't register this plugin until the DOM is ready, but now that we execute this code after the DOM is ready, this approach seems to work fine.

@cpsievert
cpsievert requested a review from schloerke June 16, 2021 21:36
@cpsievert
cpsievert merged commit ce64471 into master Jun 16, 2021
@cpsievert
cpsievert deleted the bs3tabcompat branch June 16, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants