pull/21833/head
Michael Telatynski 2019-12-27 17:05:51 +00:00
parent 06230e01e3
commit aa990462ce
1 changed files with 7 additions and 3 deletions

View File

@ -32,15 +32,19 @@ class EditableAliasesList extends EditableItemList {
const RoomAliasField = sdk.getComponent('views.elements.RoomAliasField'); const RoomAliasField = sdk.getComponent('views.elements.RoomAliasField');
const onChange = (alias) => this._onNewItemChanged({target: {value: alias}}); const onChange = (alias) => this._onNewItemChanged({target: {value: alias}});
return ( return (
<form onSubmit={this._onItemAdded} autoComplete="off" <form
noValidate={true} className="mx_EditableItemList_newItem"> onSubmit={this._onItemAdded}
autoComplete="off"
noValidate={true}
className="mx_EditableItemList_newItem"
>
<RoomAliasField <RoomAliasField
id={`mx_EditableItemList_new_${this.props.id}`} id={`mx_EditableItemList_new_${this.props.id}`}
onChange={onChange} onChange={onChange}
value={this.props.newItem || ""} value={this.props.newItem || ""}
domain={this.props.domain} /> domain={this.props.domain} />
<AccessibleButton onClick={this._onItemAdded} kind="primary"> <AccessibleButton onClick={this._onItemAdded} kind="primary">
{_t("Add")} { _t("Add") }
</AccessibleButton> </AccessibleButton>
</form> </form>
); );