mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
trim whitespace when adding to list
This commit is contained in:
parent
da85df9d1a
commit
6e57faecb0
@ -142,7 +142,7 @@ module.exports = React.createClass({
|
||||
var check = Invite.isValidAddress(this.refs.textinput.value);
|
||||
if (check === true || check === null) {
|
||||
var inviteList = this.state.inviteList.slice();
|
||||
inviteList.push(this.refs.textinput.value);
|
||||
inviteList.push(this.refs.textinput.value.trim());
|
||||
this.setState({
|
||||
inviteList: inviteList,
|
||||
queryList: [],
|
||||
|
Loading…
Reference in New Issue
Block a user