Skip to content

Commit 512826c

Browse files
committed
Fix hiding theme menu
1 parent 99019b7 commit 512826c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/book.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function playpen_text(playpen) {
380380

381381
themePopup.addEventListener('focusout', function(e) {
382382
// e.relatedTarget is null in Safari and Firefox on macOS (see workaround below)
383-
if (!!e.relatedTarget && !themePopup.contains(e.relatedTarget)) {
383+
if (!!e.relatedTarget && !themeToggleButton.contains(e.relatedTarget) && !themePopup.contains(e.relatedTarget)) {
384384
hideThemes();
385385
}
386386
});

0 commit comments

Comments
 (0)