-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Form block: use type="submit"
for buttons
#55690
Conversation
Size Change: +11 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense to me, the default should be submit.
type="submit"
for form-submit buttonstype="submit"
for buttons
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
What?
This PR changes the type of the submit buttons (inside a form block) to use
type="submit"
.Why?
The submit buttons were using the default
type="button"
, and as a result, clicking the buttons wasn't always working.How?
By tweaking the template for the
form-submit-button
block.Testing Instructions
Testing Instructions for Keyboard
Not applicable
Screenshots or screencast