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

edit
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 // Solves an edge case where the previous slide maintains the
// 'present' class when navigating between adjacent vertical // 'present' class when navigating between adjacent vertical
// stacks // stacks
if( previousSlide ) { if( previousSlide && previousSlide !== currentSlide ) {
previousSlide.classList.remove( 'present' ); previousSlide.classList.remove( 'present' );
previousSlide.setAttribute( 'aria-hidden', 'true' ); previousSlide.setAttribute( 'aria-hidden', 'true' );