In my project I'm implemented solution for Bootstrap tabs to work with browser back button. I've do that using window popstate
event. Everything works perfectly, but the tab you back out of stays grayed/selected. This is a CSS issue? or maybe this is handled by browser?
Asked
Active
Viewed 284 times
0

Mateusz Urbański
- 7,352
- 15
- 68
- 133
-
can you please post the relevant code here? – messerbill Nov 02 '16 at 14:29
-
1My guess it that the state `:active` (or the class `.active`) is still on it. Try to remove it on `popstate` (See [this](http://stackoverflow.com/a/8038811/863110) answer); – Mosh Feu Nov 02 '16 at 14:31
-
@MoshFeu: I've checked that. When I click previous button the class :active is removed. – Mateusz Urbański Nov 02 '16 at 14:36
-
So can you check what css gives the tab the background? It must be in the css.. – Mosh Feu Nov 02 '16 at 14:38