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(); const actions = this.getFormActionComponents();
return ( return (
<form <form {...attr}>
id={attr.id}
className={attr.className}
encType={attr.enctype}
method={attr.method}
action={attr.action}
>
{fields && {fields &&
<fieldset className="form-group"> <fieldset className="form-group">
{fields} {fields}