diff --git a/core/modules/widgets/reveal.js b/core/modules/widgets/reveal.js index 45049df52..f04082217 100755 --- a/core/modules/widgets/reveal.js +++ b/core/modules/widgets/reveal.js @@ -38,6 +38,7 @@ RevealWidget.prototype.render = function(parent,nextSibling) { this.renderChildren(domNode,null); if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) { this.positionPopup(domNode); + $tw.utils.addClass(domNode,"tw-popup"); // Make sure that clicks don't dismiss popups within the revealed content } if(!this.isOpen) { domNode.setAttribute("hidden","true") @@ -179,6 +180,8 @@ RevealWidget.prototype.updateState = function() { // Animate our DOM node if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) { this.positionPopup(domNode); + $tw.utils.addClass(domNode,"tw-popup"); // Make sure that clicks don't dismiss popups within the revealed content + } if(this.isOpen) { domNode.removeAttribute("hidden");