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

Use content_tag instead of button_tag for buttons #479

Merged
merged 2 commits into from Aug 10, 2018

Conversation

benthorner
Copy link
Contributor

@benthorner benthorner commented Aug 10, 2018

https://trello.com/c/EDDD2DYl/128-handle-when-the-user-doesnt-select-a-supertype-or-document-type

When using a button to submit a GET form, the button element becomes an
unwanted parameter sent to the server. The button_tag helper sets two
attributes: name ('button') and type ('submit'), the former being the
cause of the issue and the latter being something we can set manually.

Remember to update the CHANGELOG if your change needs to be listed in the next version of the gem.


Component guide for this PR:
https://govuk-publishing-compon-pr-[THIS PR NUMBER].herokuapp.com/component-guide/

When using a button to submit a GET form, the button element becomes an
unwanted parameter sent to the server. The button_tag helper sets two
attributes: name ('button') and type ('submit'), the former being the
cause of the issue and the latter being something we can set manually.
@benthorner benthorner had a problem deploying to govuk-publishing-compon-pr-479 August 10, 2018 09:48 Failure
Copy link
Contributor

@alex-ju alex-ju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@benthorner benthorner merged commit dc44dd6 into master Aug 10, 2018
@benthorner benthorner deleted the use-content-tag-for-button branch August 10, 2018 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants