Allow user-defined <Form> attributes

This commit is contained in:
Ingo Schommer 2016-04-07 21:32:31 +12:00
parent 0fe330621c
commit e7d2e9b0b2

View File

@ -22,13 +22,7 @@ class FormComponent extends SilverStripeComponent {
const actions = this.getFormActionComponents();
return (
<form
id={attr.id}
className={attr.className}
encType={attr.enctype}
method={attr.method}
action={attr.action}
>
<form {...attr}>
{fields &&
<fieldset className="form-group">
{fields}