-
Notifications
You must be signed in to change notification settings - Fork 71
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
[SOL-2077] Prevent 'Change Background' button from forcing form submission #105
[SOL-2077] Prevent 'Change Background' button from forcing form submission #105
Conversation
Thanks for the pull request, @haikuginger! It looks like you're a member of a company that does contract work for edX. If you're doing this work as part of a paid contract with edX, you should talk to edX about who will review this pull request. If this work is not part of a paid contract with edX, then you should ensure that there is an OSPR issue to track this work in JIRA, so that we don't lose track of your pull request. To automatically create an OSPR issue for this pull request, just visit this link: https://openedx-webhooks.herokuapp.com/github/process_pr?number=105&repo=edx-solutions%2Fxblock-drag-and-drop-v2 |
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.
👍
- I tested this on my devstack, using the PR's instructions.
- I read through the code.
-
Includes documentationBugfix, no documentation required.
Thanks for the pull request, @haikuginger! I've created OSPR-1458 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. If you like, you can add yourself to the AUTHORS file for this repo, though that isn't required. Please see the CONTRIBUTING file for more information. |
👍 |
1 similar comment
👍 |
…ion bump to 2.0.10
6288a9b
to
8441f33
Compare
Per @antoviaque, I'm adding a version bump to 2.0.10 in this PR so we can get this fix into tomorrow's OpenEdX release. I am planning on merging ASAP once Travis goes green so I can open an edx-platform version bump PR, so if @pomegranited, @cahrens, and/or @staubina want to give the version bump notes a once-over for any glaring issues prior to that, that'd be great. |
@haikuginger I think we need a 👍 from Product (@sstack22) before merge? @antoviaque can you confirm? But your notes look fine. Thanks for doing the version bump! |
👍 ! |
As part of #88, we inadvertently removed a
PreventDefaults
call from the event handler for the "Change Background" button. Since some browsers default the type of<button>
elements tosubmit
, this resulted in the form being submitted synchronously, resulting in a page reload, and preventing the updated image URI from being saved. This change explicitly sets that button's type to "button", which has no default submission behavior.JIRA tickets: Fixes SOL-2077
Testing instructions:
Reviewers