1
0
mirror of https://github.com/ascribe/onion.git synced 2025-02-14 21:10:27 +01:00

solves the issue for textarea_toggable

couldnt reproduce login
This commit is contained in:
diminator 2015-07-22 17:12:46 +02:00
parent e060d39486
commit 1b7b344605

View File

@ -39,7 +39,6 @@ let Form = React.createClass({
this.setState(this.getInitialState());
},
submit(event){
console.log('submit')
if (event) {
event.preventDefault();
}
@ -57,13 +56,9 @@ let Form = React.createClass({
getFormData(){
let data = {};
console.log('data')
for (let ref in this.refs){
data[this.refs[ref].props.name] = this.refs[ref].state.value;
console.log(this.refs[ref].state.value)
console.log(this.refs[ref].refs.input.state.value)
}
//console.log(data)
if ('getFormData' in this.props){
data = mergeOptionsWithDuplicates(data, this.props.getFormData());