1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 14:54:51 +00:00

Make the reveal widget hide the div element if it is not open

This commit is contained in:
Jeremy Ruston 2013-10-15 21:06:52 +01:00
parent ebcd5177ec
commit 5b4ca67d6e

View File

@ -36,6 +36,9 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) { if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) {
this.positionPopup(domNode); this.positionPopup(domNode);
} }
if(!this.isOpen) {
domNode.setAttribute("hidden","true")
}
this.domNodes.push(domNode); this.domNodes.push(domNode);
}; };