mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-02 23:33:47 -08: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:
parent
42a3e31b1b
commit
4d3103ff25
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue