Skip to content
Advertisement

Bootstrap 4 navigation tabs content not showing content on initial page load

On initial page load, the tabs show but the content for that selected tab does not.

If I click the “Link” tab and back to the “Post” tab then it shows up.

JavaScript

On page load it looks like this (the div with the tab-pane class hasn’t been displayed):

enter image description here

There are no errors in my console and the bootstrap JS file is loaded. There are some similar questions around but the solutions have not worked for me.

What do I need to add to get the tab pane to display when the page loads?

Advertisement

Answer

Check this out

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement