1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-04 20:08:02 +00:00

Fix bug with popup cancelling if state is in a field other than 'text'

This commit is contained in:
Jeremy Ruston
2019-07-11 17:07:25 +01:00
committed by GitHub

View File

@@ -158,7 +158,11 @@ Popup.prototype.cancel = function(level) {
for(var t=level; t<numPopups; t++) {
var popup = this.popups.pop();
if(popup.title) {
popup.wiki.deleteTiddler(popup.title);
if(popup.noStateReference) {
popup.wiki.deleteTiddler(popup.title);
} else {
popup.wiki.deleteTiddler($tw.utils.parseTextReference(popup.title).title);
}
}
}
if(this.popups.length === 0) {