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

sort-optimisations
Saq Imtiaz 2021-09-17 13:52:27 +02:00 zatwierdzone przez GitHub
rodzic e9d8547a81
commit de33b365ae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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