Skip to content

Commit

Permalink
Merge pull request #6487 from getkirby/fix/6486-menu-toggle-outside
Browse files Browse the repository at this point in the history
Fix menu blur when not inside Panel
  • Loading branch information
distantnative authored Jun 13, 2024
2 parents f9f00b1 + 7e3e848 commit 3af8dfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions panel/src/panel/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ export default (panel) => {
* @param {Event} event
*/
blur(event) {
if (media.matches === false) {
const menu = document.querySelector(".k-panel-menu");

if (!menu || media.matches === false) {
return false;
}

const menu = document.querySelector(".k-panel-menu");
const toggle = document.querySelector(".k-panel-menu-proxy");

if (
Expand Down

0 comments on commit 3af8dfb

Please sign in to comment.