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

Feature - button type #71

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Feature - button type #71

merged 3 commits into from
Dec 5, 2024

Conversation

piqusy
Copy link
Contributor

@piqusy piqusy commented Dec 5, 2024

Description

Enables setting a button type as 'submit', any other viable option or a default 'button' if the Button is not a link.

Use-case: using various buttons in a form without implicitly having them as submit type

@piqusy piqusy added the enhancement New feature or request label Dec 5, 2024
@piqusy piqusy added this to the 1.4.7 milestone Dec 5, 2024
@piqusy piqusy requested a review from a team December 5, 2024 09:35
@piqusy piqusy self-assigned this Dec 5, 2024
@@ -20,6 +20,10 @@
"buttonId": {
"type": "string"
},
"buttonType": {
"type": "string",
"default": "button"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"default": "button"
"default": ""

and don't add the attr if it's empty, and we should be ok 😄

Enables setting a button type as 'submit', any other viable option or a
default 'button' if the Button is not a link
@piqusy piqusy force-pushed the feature/button-type branch from 1f62bcb to cb36884 Compare December 5, 2024 11:24
@piqusy piqusy merged commit 1a56577 into release/1.4.7 Dec 5, 2024
1 check failed
@piqusy piqusy deleted the feature/button-type branch December 5, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants