1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Reveal widget: fix crash when popup tiddler is refreshed but the popup is not displayed

This commit is contained in:
jeremy@jermolene.com 2021-08-04 17:00:42 +01:00
parent 32b36fb2af
commit 97dff042f7

View File

@ -226,7 +226,7 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
this.refreshSelf(); this.refreshSelf();
return true; return true;
} }
} else if(this.type === "popup" && this.updatePopupPosition && (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) { } else if(this.type === "popup" && this.isOpen && this.updatePopupPosition && (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) {
this.positionPopup(this.domNode); this.positionPopup(this.domNode);
} }
if(changedAttributes.style) { if(changedAttributes.style) {