mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user