Merge pull request #29 from t3chguy/fix_value_derp

remove duplicate value fail, this.state.value does not exist.
This commit is contained in:
Richard van der Hoff 2017-10-23 17:32:09 +01:00 committed by GitHub
commit c498e1f879

View file

@ -372,7 +372,7 @@ export default React.createClass({
prompt = [ prompt = [
<div key="inputBox" className="mxt_HomePage_inputBox"> <div key="inputBox" className="mxt_HomePage_inputBox">
<form onSubmit={ this.onSubmit }> <form onSubmit={ this.onSubmit }>
<input autoFocus className="mxt_HomePage_inputBox_prompt" value={ this.state.entity } ref="prompt" size="36" type="text" value={ this.state.value } placeholder="#room:domain.com or @user:domain.com" /> <input autoFocus className="mxt_HomePage_inputBox_prompt" value={ this.state.entity } ref="prompt" size="36" type="text" placeholder="#room:domain.com or @user:domain.com" />
<input className="mxt_HomePage_inputBox_button" type="submit" value="Get link!" /> <input className="mxt_HomePage_inputBox_button" type="submit" value="Get link!" />
</form> </form>
{ error } { error }