Skip to content

Commit

Permalink
Fix nested form error. Use div in place of form tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Carlino committed Oct 16, 2018
1 parent 1c319c1 commit 247bef7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion client/src/containers/HistoryList/HistoryList.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ class HistoryList extends Component {
return (
<div className="history-list">
<a href="#" className={backButtonClasses} onClick={this.handleBack} />
<FormBuilderLoader identifier="AssetAdmin.HistoryList" schemaUrl={schemaUrl} />
<FormBuilderLoader
identifier="AssetAdmin.HistoryList"
schemaUrl={schemaUrl}
formTag="div"
/>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/features/file-history.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Feature: View File History
When I click "History" in the "#Editor .nav-tabs" element
Then I should see an ".history-list__list" element
When I click on the latest history item
Then I should see the "Form_fileHistoryForm" form
Then I should see an "#Form_fileInsertForm" element

Scenario: Editing a file adds history
When I click "Details" in the "#Editor .nav-tabs" element
Expand Down

0 comments on commit 247bef7

Please sign in to comment.