diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index e12adc54c8..a8ed9d1051 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -251,6 +251,7 @@ module.exports = React.createClass({ // cancel the click unless the user confirms it ev.preventDefault(); + var value = ev.target.value; Modal.createDialog(QuestionDialog, { title: "Privacy warning", @@ -263,7 +264,7 @@ module.exports = React.createClass({ onFinished: function(confirmed) { if (confirmed) { self.setState({ - history_visibility: ev.target.value + history_visibility: value }); } },