From e23f496dfed03f326d181daeb4d6064fd9838cee Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Tue, 22 Mar 2016 17:17:40 +0000 Subject: [PATCH] fix PowerSelector to support both controlled & uncontrolled variants --- src/components/views/elements/PowerSelector.js | 9 ++++++++- src/components/views/rooms/MemberInfo.js | 2 +- src/components/views/rooms/RoomSettings.js | 18 +++++++++--------- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/components/views/elements/PowerSelector.js b/src/components/views/elements/PowerSelector.js index 7456156df3..3c65ca707c 100644 --- a/src/components/views/elements/PowerSelector.js +++ b/src/components/views/elements/PowerSelector.js @@ -34,6 +34,10 @@ module.exports = React.createClass({ propTypes: { value: React.PropTypes.number.isRequired, + // if true, the +