Skip to content

Commit

Permalink
chore: blur active element on toc dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Dec 24, 2024
1 parent 2f868fc commit bd8783f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/js/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ function initTocDialog() {
}
openButton.addEventListener('click', () => {
dialog.showModal();
document.activeElement?.blur();
});
dialog.addEventListener('click', (e) => {
dialog.close();
Expand Down

0 comments on commit bd8783f

Please sign in to comment.