mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 22:33:42 -04:00
Fixed #10: Invisible header after closing search bar with ESC key
This commit is contained in:
@@ -373,6 +373,9 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
window.addEventListener('keyup', function(e) {
|
||||
var code = e.keyCode || e.which;
|
||||
if (code == 27) {
|
||||
query.blur();
|
||||
|
||||
/* Exit locked state */
|
||||
document.body.classList.remove('toggle-search');
|
||||
document.body.classList.remove('locked');
|
||||
toggle.checked = false;
|
||||
|
||||
Reference in New Issue
Block a user