diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextualMenu.js index f3189c2e4b..7ec078f739 100644 --- a/src/components/structures/ContextualMenu.js +++ b/src/components/structures/ContextualMenu.js @@ -59,6 +59,11 @@ module.exports = { } }; + // Close the menu on window resize + const windowResize = function() { + closeMenu(); + }; + const position = {}; let chevronFace = null; @@ -135,7 +140,7 @@ module.exports = {