diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 26e59cb1f..2209e9c40 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -1015,7 +1015,7 @@ $.fn.popup = function(parameters) { if(settings.on == 'hover' && openedWithTouch) { module.bind.touchClose(); } - if(settings.on == 'click' && settings.closable) { + if(module.should.useClickaway()) { module.bind.clickaway(); } }, @@ -1073,6 +1073,12 @@ $.fn.popup = function(parameters) { should: { centerArrow: function(calculations) { return !module.is.basic() && calculations.target.width <= (settings.arrowPixelsFromEdge * 2); + }, + useClickaway: function() { + return (settings.closable == 'auto') + ? (settings.on == 'click') + : settings.closable + ; } },