D
D
Dmitry Klimantovich2019-04-15 19:22:28
css
Dmitry Klimantovich, 2019-04-15 19:22:28

How to fix switching .active and .show classes in Bootstrap?

Good afternoon.
Please help me fix the problem with switching the list https://jsfiddle.net/kadikey58/48ky2m0n/
As you can see, when switching tabs, the .active and .show classes are added, but not removed from the active ones.
But as soon as you pull these tabs out of the carousel, it immediately works as it should.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Klimantovich, 2019-04-15
@dikey58

The answer turned out to be simple - it's better to swap the carousel and tabs. That is, make two .list-tab.list-group blocks inside each .carousel-item

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question