From 3df379cb499ede1bff9383bad62b1ef0cbba0622 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 7 Sep 2017 18:54:41 +0100 Subject: [PATCH] fix radio for theme selection Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/UserSettings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/UserSettings.js b/src/components/structures/UserSettings.js index 3c139f77a6..e67991ac12 100644 --- a/src/components/structures/UserSettings.js +++ b/src/components/structures/UserSettings.js @@ -729,6 +729,7 @@ module.exports = React.createClass({ // to rebind the onChange each time we render const onChange = (e) => { if (e.target.checked) { + this._syncedSettings[setting.id] = setting.value; UserSettingsStore.setSyncedSetting(setting.id, setting.value); } dis.dispatch({ @@ -741,7 +742,7 @@ module.exports = React.createClass({ type="radio" name={ setting.id } value={ setting.value } - defaultChecked={ this._syncedSettings[setting.id] === setting.value } + checked={ this._syncedSettings[setting.id] === setting.value } onChange={ onChange } />