You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
trim whitespace when adding to list
This commit is contained in:
@@ -142,7 +142,7 @@ module.exports = React.createClass({
|
|||||||
var check = Invite.isValidAddress(this.refs.textinput.value);
|
var check = Invite.isValidAddress(this.refs.textinput.value);
|
||||||
if (check === true || check === null) {
|
if (check === true || check === null) {
|
||||||
var inviteList = this.state.inviteList.slice();
|
var inviteList = this.state.inviteList.slice();
|
||||||
inviteList.push(this.refs.textinput.value);
|
inviteList.push(this.refs.textinput.value.trim());
|
||||||
this.setState({
|
this.setState({
|
||||||
inviteList: inviteList,
|
inviteList: inviteList,
|
||||||
queryList: [],
|
queryList: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user