Fix hiding theme menu

This commit is contained in:
Matt Ickstadt 2018-07-30 19:06:50 -05:00
parent 99019b74aa
commit 512826c465
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
});