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

Fixed refresh bug with radio widget where the tc-radio-selected class is not correctly updated (#6044)

This commit is contained in:
Saq Imtiaz
2021-09-17 13:52:27 +02:00
committed by GitHub
parent e9d8547a81
commit de33b365ae

View File

@@ -122,6 +122,7 @@ RadioWidget.prototype.refresh = function(changedTiddlers) {
return true;
} else if(changedTiddlers[this.radioTitle]) {
this.inputDomNode.checked = this.getValue() === this.radioValue;
$tw.utils.toggleClass(this.labelDomNode,"tc-radio-selected",this.inputDomNode.checked);
return this.refreshChildren(changedTiddlers);
} else {
return this.refreshChildren(changedTiddlers);