-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: Form submition #1769
Comments
This sounds like a great idea, PRs welcome! |
PR up. |
I'm wondering, does this have anything to do with this error I'm getting? I'm using React Formal (https://github.com/jquense/react-formal) and using it like this: import {default as Formal} from 'react-formal'; //They both have a component called <Form>
import {Form, Button} from 'semantic-ui-react';
class Thing extends Component {
handleSubmit = (data) => {
}
render() {
return {
<Form
as={Formal}
schema={mySchema}
onSubmit={this.handleSubmit}
>
// fields here...
<button type="submit">Submit</button>
</Form>
}
}
} When I go to submit I get the following error on the console:
Is Semantic UI doing something strange here? |
@darkadept Nope, as I see -if (!action) e.preventDefault()
+if (!action) _.invoke(e, 'preventDefault') |
Hi! Since semantic-ui force us to use Form component as wrapper to Input, TextArea etc, It would cool to set default hof callback to prevent page reload if
action
prop have not providedThe text was updated successfully, but these errors were encountered: