From d8bc362a8953acf4327f41c98dee9025e6436583 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 25 Oct 2015 00:59:33 +0100 Subject: [PATCH] fix invites --- .../vector/views/organisms/MemberList.js | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/src/skins/vector/views/organisms/MemberList.js b/src/skins/vector/views/organisms/MemberList.js index 5745ae55..ba7bc010 100644 --- a/src/skins/vector/views/organisms/MemberList.js +++ b/src/skins/vector/views/organisms/MemberList.js @@ -30,7 +30,6 @@ module.exports = React.createClass({ mixins: [MemberListController], getInitialState: function() { - return { editing: false }; }, memberSort: function(userIdA, userIdB) { @@ -71,21 +70,9 @@ module.exports = React.createClass({ }); }, - onPopulateInvite: function(inputText, shouldSubmit) { - // reset back to placeholder - this.refs.invite.setValue("Invite", false, true); - this.setState({ editing: false }); - if (!shouldSubmit) { - return; // enter key wasn't pressed - } - this.onInvite(inputText); - }, - - onClickInvite: function(ev) { - this.setState({ editing: true }); - this.refs.invite.onClickDiv(); - ev.stopPropagation(); - ev.preventDefault(); + onPopulateInvite: function(e) { + this.onInvite(this.refs.invite.getDOMNode().value); + e.preventDefault(); }, inviteTile: function() { @@ -95,7 +82,9 @@ module.exports = React.createClass({ ); } else { return ( - +
+ +
); } },