You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.
Complete example if you want to send the form via HTTP
varPerson=t.struct({name: t.Str,surname: t.Str});varApp=React.createClass({onSubmit(evt){varvalue=this.refs.form.getValue();if(!value){// there are errors, don't send the formevt.preventDefault();}else{// everything ok, let the form fly...// or handle the values contained in the `value` variable with js}},render(){return(<formonSubmit={this.onSubmit}><Formref="form"type={Person}/><buttontype="submit">Save</button></form>);}});React.render(<App/>,document.getElementById('app'));
I find it strange there's no such request. Am I overlooked it?
Case is like this: I create form like that:
Problem is, when focus is inside any input, and I click 'enter', button submit doesn't being clicked (and it shouldn't as it isn't inside
.I'd like to have possibility to have this button inside, not using custom templates / custom components.
The text was updated successfully, but these errors were encountered: