Skip to content

Commit

Permalink
Fix menu blur when not inside Panel
Browse files Browse the repository at this point in the history
Fixes #6486
  • Loading branch information
distantnative committed Jun 13, 2024
1 parent f9f00b1 commit 7e3e848
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 7e3e848

Please sign in to comment.