mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
Fix hiding theme menu
This commit is contained in:
parent
99019b74aa
commit
512826c465
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue