prevent missing 'present' class when navigating to same slide twice
This commit is contained in:
parent
0282413b69
commit
511397c177
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue