diff --git a/skins/base/views/molecules/UserSelector.js b/skins/base/views/molecules/UserSelector.js index 81afa5f4e6..8ec0086670 100644 --- a/skins/base/views/molecules/UserSelector.js +++ b/skins/base/views/molecules/UserSelector.js @@ -26,17 +26,19 @@ module.exports = React.createClass({ onAddUserId: function() { this.addUser(this.refs.user_id_input.getDOMNode().value); + this.refs.user_id_input.getDOMNode().value = ""; }, render: function() { + var self = this; return (
- +
); diff --git a/src/controllers/molecules/UserSelector.js b/src/controllers/molecules/UserSelector.js index b3a604402a..67a56163fa 100644 --- a/src/controllers/molecules/UserSelector.js +++ b/src/controllers/molecules/UserSelector.js @@ -38,7 +38,7 @@ module.exports = { }, removeUser: function(user_id) { - this.props.onChange(this.state.selected_users.filter(function(e) { + this.props.onChange(this.props.selected_users.filter(function(e) { return e != user_id; })); },