Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"git add"
]
},
"main": "lib/index.js",
"main": "src/index.js",
"files": [
"dist",
"lib"
Expand Down
8 changes: 4 additions & 4 deletions src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default class Form extends Component {
const _SchemaField = registry.fields.SchemaField;

return (
<form
<div
className={className ? className : "rjsf"}
id={id}
name={name}
Expand All @@ -200,7 +200,7 @@ export default class Form extends Component {
encType={enctype}
acceptCharset={acceptcharset}
noValidate={noHtml5Validate}
onSubmit={this.onSubmit}>
>
{this.renderErrors()}
<_SchemaField
schema={schema}
Expand All @@ -218,12 +218,12 @@ export default class Form extends Component {
children
) : (
<p>
<button type="submit" className="btn btn-info">
<button type="submit" className="btn btn-info" onClick={this.onSubmit} >
Submit
</button>
</p>
)}
</form>
</div>
);
}
}
Expand Down