-
Notifications
You must be signed in to change notification settings - Fork 722
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
WebHost: Fix "Add" button for custom option values causing a weird redirect #3518
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…edirect This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit". This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect. (An alternative would be `event.preventDefault()` but that seems less clean to me, but also I'm not a HTML/JS dev)
github-actions
bot
added
affects: webhost
Issues/PRs that touch webhost and may need additional validation.
waiting-on: peer-review
Issue/PR has not been reviewed by enough people yet.
labels
Jun 12, 2024
NewSoupVi
added
is: bug/fix
Issues that are reporting bugs or pull requests that are fixing bugs.
affects: release/blocker
Issues/PRs that must be addressed before next official release.
labels
Jun 12, 2024
NewSoupVi
changed the title
WebHost: Fix "Add" button for Progression Balancing causing a weird redirect
WebHost: Fix "Add" button for custom option values causing a weird redirect
Jun 12, 2024
Jouramie
approved these changes
Jun 13, 2024
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.
Not a HTML/JS developer either, but I tested the change and I confirm it works. LGTM
ThePhar
approved these changes
Jun 13, 2024
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 is a perfectly fine change.
LegendaryLinux
approved these changes
Jun 13, 2024
jnschurig
pushed a commit
to Tranquilite0/Archipelago-SoulBlazer
that referenced
this pull request
Jun 13, 2024
…direct (ArchipelagoMW#3518) * WebHost: Fix "Add" button for Progression Balancing causing a weird redirect This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit". This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect. (An alternative would be `event.preventDefault()` but that seems less clean to me, but also I'm not a HTML/JS dev) * There's also multiple.
sflavelle
pushed a commit
to sflavelle/Archipelago-tgc
that referenced
this pull request
Jun 20, 2024
…direct (ArchipelagoMW#3518) * WebHost: Fix "Add" button for Progression Balancing causing a weird redirect This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit". This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect. (An alternative would be `event.preventDefault()` but that seems less clean to me, but also I'm not a HTML/JS dev) * There's also multiple.
qwint
pushed a commit
to qwint/Archipelago
that referenced
this pull request
Jun 24, 2024
…direct (ArchipelagoMW#3518) * WebHost: Fix "Add" button for Progression Balancing causing a weird redirect This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit". This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect. (An alternative would be `event.preventDefault()` but that seems less clean to me, but also I'm not a HTML/JS dev) * There's also multiple.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects: release/blocker
Issues/PRs that must be addressed before next official release.
affects: webhost
Issues/PRs that touch webhost and may need additional validation.
is: bug/fix
Issues that are reporting bugs or pull requests that are fixing bugs.
waiting-on: peer-review
Issue/PR has not been reviewed by enough people yet.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit", making this button completely useless (destructive even)
This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect.
(An alternative would be
event.preventDefault()
but that seems less clean to me, but also I'm not a HTML/JS dev)