Skip to content

Commit

Permalink
fix: remain active when clicked multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Apr 2, 2024
1 parent ca19b3d commit 30429f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/abstract_diff_view.ts
Expand Up @@ -171,7 +171,9 @@ export default abstract class DiffView extends Modal {
this.rightActive = idx;
}
// make old not active
currentSideOldVersion.html.classList.remove('is-active');
if (Number.parseInt(currentSideOldVersion.html.id) !== idx) {
currentSideOldVersion.html.classList.remove('is-active');
}
return clickedEl;
}
}

0 comments on commit 30429f6

Please sign in to comment.