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

Set Vue Vanilla button types #1731

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

sdirix
Copy link
Member

@sdirix sdirix commented Mar 31, 2021

Buttons contained in forms are by default of type 'submit'. We now
explicitely set the ArrayListRenderer's buttons to type 'button' to
avoid submitting forms in case that they are rendered as part of a form.

@sdirix sdirix requested a review from TheZoker March 31, 2021 08:06
@sdirix
Copy link
Member Author

sdirix commented Mar 31, 2021

@TheZoker Please add a test case to check whether all buttons rendered by this renderer are of type button.

@sdirix sdirix linked an issue Mar 31, 2021 that may be closed by this pull request
@coveralls
Copy link

coveralls commented Mar 31, 2021

Coverage Status

Coverage remained the same at 88.495% when pulling 067a116 on sdirix:buttons-should-not-submit into 18ffe5e on eclipsesource:master.

Buttons contained in forms are by default of type 'submit'. We now
explicitly set the ArrayListRenderer's buttons to type 'button' to
avoid submitting in case that they are rendered as part of a form.
Copy link
Contributor

@TheZoker TheZoker left a comment

Choose a reason for hiding this comment

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

LGTM 👍

I can confirm, that with this change the buttons no longer trigger the form to submit on click

@sdirix sdirix merged commit f16a40c into eclipsesource:master Apr 22, 2021
@sdirix sdirix deleted the buttons-should-not-submit branch April 22, 2021 07:33
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.

Prevent array buttons to submit form
3 participants