prevent missing 'present' class when navigating to same slide twice

This commit is contained in:
Hakim El Hattab 2018-03-14 12:03:42 +01:00
parent 0282413b69
commit 511397c177
1 changed files with 1 additions and 1 deletions

View File

@ -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' );