prevent missing 'present' class when navigating to same slide twice
parent
0282413b69
commit
511397c177
|
@ -2480,7 +2480,7 @@
|
|||
// Solves an edge case where the previous slide maintains the
|
||||
// 'present' class when navigating between adjacent vertical
|
||||
// stacks
|
||||
if( previousSlide ) {
|
||||
if( previousSlide && previousSlide !== currentSlide ) {
|
||||
previousSlide.classList.remove( 'present' );
|
||||
previousSlide.setAttribute( 'aria-hidden', 'true' );
|
||||
|
||||
|
|
Loading…
Reference in New Issue