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

Fixes #3049 - Clear the image preview when hitting an error #3067

Merged
merged 4 commits into from
Nov 4, 2019

Conversation

miketaylr
Copy link
Member

@miketaylr miketaylr commented Oct 29, 2019

Need to write some tests first.

edit: Done.

@miketaylr miketaylr changed the title Issue #3049 - Clear the image preview when hitting an error Fixes #3049 - Clear the image preview when hitting an error Oct 29, 2019
Mike Taylor added 2 commits October 29, 2019 11:36
We're testing that we can handle the scenario of an invalid
image, after receiving an already valid one.
@miketaylr miketaylr requested a review from ksy36 October 29, 2019 16:48
@miketaylr miketaylr marked this pull request as ready for review October 29, 2019 16:48
@miketaylr
Copy link
Member Author

r? @ksy36 (after PTO is fine, this is sort of an edge case bug)

// show the upload label when we're responding to a click event
// (instead of being called from an error handler, which will
// display its own error label)
event.preventDefault();
Copy link
Member Author

Choose a reason for hiding this comment

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

(honestly, i don't know why we're preventDefaulting here and not in the other bugform.js, -- I suspect it's not actually needed)

@miketaylr miketaylr merged commit 32e47a8 into master Nov 4, 2019
@miketaylr miketaylr deleted the issues/3049/1 branch November 4, 2019 18:27
@miketaylr
Copy link
Member Author

Thanks!

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.

2 participants