mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 09:30:28 +00:00
Make the reveal widget hide the div element if it is not open
This commit is contained in:
parent
ebcd5177ec
commit
5b4ca67d6e
@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user