From a3dcd24e4ac72a0c2ff50b7ae8da9533a2a0965a Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Fri, 25 Mar 2016 01:12:16 +0000 Subject: [PATCH] fix event-recycling bug and mend history viz changes --- src/components/views/rooms/RoomSettings.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }); } },