Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BB-543: Enable native html form functionality #606

Merged
merged 3 commits into from
May 3, 2021

Conversation

MonkeyDo
Copy link
Contributor

As reported in BB-543, pressing enter in a field in the entity editor page does not submit the page as a user should expect.

We were not using a properly formatted form in the entity editor, which was breaking default browser functionality.
One issue was the lack of a parent <form> element with an onSubmit property, and making our submit button of type="submit".
The other issue was multiple nested form elements, which is not supported like that in HTML.

This PR fixes the form structure and re-enables default browser behavior.

Previously defined in SubmissionSection
We cannot have nested html forms, that breaks native functionality
@MonkeyDo MonkeyDo merged commit 7bcb6e6 into master May 3, 2021
@MonkeyDo MonkeyDo deleted the native-html-form-functionality branch May 21, 2021 17:47
MonkeyDo added a commit that referenced this pull request Jun 14, 2021
Regression from PR #606 where we changed the HTML form functionality and the submission in the entity editor, but I forgot to change it in the merge editor as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant