mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Allow user-defined <Form> attributes
This commit is contained in:
parent
0fe330621c
commit
e7d2e9b0b2
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user