Fix hiding theme menu
This commit is contained in:
parent
99019b74aa
commit
512826c465
|
@ -380,7 +380,7 @@ function playpen_text(playpen) {
|
||||||
|
|
||||||
themePopup.addEventListener('focusout', function(e) {
|
themePopup.addEventListener('focusout', function(e) {
|
||||||
// e.relatedTarget is null in Safari and Firefox on macOS (see workaround below)
|
// 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();
|
hideThemes();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue