1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-23 06:20:01 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);