diff --git a/www/common/toolbar.js b/www/common/toolbar.js index bb17f7b1b..8470dd850 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -318,7 +318,7 @@ define([ if (config.ifrw) { var removeDropdowns = function (e) { - if (e.target.matches('.dropbtn') || (e.target.parentElement && e.target.parentElement.matches('.dropbtn'))) { + if ($(e.target).parents('.cryptpad-dropdown-container').length) { return; } $container.find('.cryptpad-dropdown').hide();