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

SubmitButtonElement: Set the submit value by the value attribute #119

Conversation

nilmerg
Copy link
Member

@nilmerg nilmerg commented Mar 17, 2023

Some forms still use value to define the submit value. It shouldn't make a difference to use it as submit value internally now, as the end result in HTML is the same.

@nilmerg nilmerg added the bug Something isn't working label Mar 17, 2023
@nilmerg nilmerg requested a review from lippserd March 17, 2023 12:13
@nilmerg nilmerg self-assigned this Mar 17, 2023
@cla-bot cla-bot bot added the cla/signed label Mar 17, 2023
@nilmerg nilmerg force-pushed the fix/submit-buttons-with-default-value-are-not-submitted-correctly branch 2 times, most recently from 5c10dc0 to fa82938 Compare March 20, 2023 13:02
lippserd
lippserd previously approved these changes Mar 20, 2023
Copy link
Member

@lippserd lippserd left a comment

Choose a reason for hiding this comment

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

PR title and description should be adjusted though.

@lippserd
Copy link
Member

PR title and description should be adjusted though.

And also commit title and description 😆

@nilmerg
Copy link
Member Author

nilmerg commented Mar 20, 2023

Why? There's still a submit value that's not the value.

@lippserd
Copy link
Member

Why? There's still a submit value that's not the value.

We remove the submitValue attribute and now use value exclusively for it, instead of doing it "also".

@nilmerg
Copy link
Member Author

nilmerg commented Mar 20, 2023

😂

@nilmerg nilmerg changed the title SubmitButtonElement: Also set the submit value by the value attribute SubmitButtonElement: Set the submit value by the value attribute Mar 20, 2023
@lippserd
Copy link
Member

Easy fix ;).

Some forms still use `value` to define the submit value. It shouldn't make
a difference to use it as submit value internally now, as the end result
in HTML is the same.
@nilmerg nilmerg force-pushed the fix/submit-buttons-with-default-value-are-not-submitted-correctly branch from fa82938 to e3659fa Compare March 20, 2023 14:30
@nilmerg nilmerg requested a review from lippserd March 20, 2023 14:30
@nilmerg nilmerg merged commit e14a2a0 into master Mar 21, 2023
13 checks passed
@nilmerg nilmerg deleted the fix/submit-buttons-with-default-value-are-not-submitted-correctly branch March 21, 2023 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants