From 512826c4658dda19b6487f5400d02d3379331737 Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Mon, 30 Jul 2018 19:06:50 -0500 Subject: [PATCH] Fix hiding theme menu --- src/theme/book.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/book.js b/src/theme/book.js index aea7eda7..c0cd58e4 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -380,7 +380,7 @@ function playpen_text(playpen) { themePopup.addEventListener('focusout', function(e) { // e.relatedTarget is null in Safari and Firefox on macOS (see workaround below) - if (!!e.relatedTarget && !themePopup.contains(e.relatedTarget)) { + if (!!e.relatedTarget && !themeToggleButton.contains(e.relatedTarget) && !themePopup.contains(e.relatedTarget)) { hideThemes(); } });