replace value attr with defaultValue on textarea

This commit is contained in:
igoradamenko
2018-05-18 19:31:42 +03:00
parent c300d57730
commit a40626ef42
+1 -3
View File
@@ -135,15 +135,13 @@ export default class Input extends Component {
const charactersLeft = maxLength - commentLength;
const { mods = {}, value = null } = props;
console.log(value)
return (
<form className={b('input', props)} onSubmit={this.send} role="form" aria-label="New comment">
<div className="input__field-wrapper">
<textarea
className="input__field"
placeholder="Your comment here"
value={value}
defaultValue={'asdasdasdas'}
maxLength={maxLength}
onInput={this.onInput}
onKeyDown={this.onKeyDown}