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

Allow serialization of button name and value #159

Merged
merged 1 commit into from
Feb 20, 2023
Merged

Conversation

danielweinmann
Copy link
Contributor

@danielweinmann danielweinmann commented Feb 20, 2023

Issue described at #158

I couldn't find an easy way to create an E2E test for this, so I only tested it manually :)

@netlify
Copy link

netlify bot commented Feb 20, 2023

Deploy Preview for remix-forms canceled.

Name Link
🔨 Latest commit 17e9a4e
🔍 Latest deploy log https://app.netlify.com/sites/remix-forms/deploys/63f367fb7807a600080050d1

@danielweinmann danielweinmann merged commit 5fc0a67 into main Feb 20, 2023
@danielweinmann danielweinmann deleted the button-submit branch February 20, 2023 12:36
@@ -419,6 +423,7 @@ function createForm({
return React.cloneElement(child, {
disabled,
children: buttonLabel,
onClick: onSubmit,
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe only if type === undefined | submit ?

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.

2 participants