1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

Update selected value if children have been refreshed

If the children have been refreshed, it is necessary to check, whether
the value of the select box has been changed.
This commit is contained in:
cehmke 2015-05-09 23:40:03 +02:00
parent 42a3e31b1b
commit 4d3103ff25

View File

@ -127,10 +127,11 @@ SelectWidget.prototype.refresh = function(changedTiddlers) {
return true;
// If the target tiddler value has changed, just update setting and refresh the children
} else {
if(changedTiddlers[this.selectTitle]) {
var childrenRefreshed = this.refreshChildren(changedTiddlers);
if(changedTiddlers[this.selectTitle] || childrenRefreshed) {
this.setSelectValue();
}
return this.refreshChildren(changedTiddlers);
return childrenRefreshed;
}
};