Skip to content

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

Merged
miketaylr merged 4 commits intomasterfrom
issues/3049/1
Nov 4, 2019
Merged

Fixes #3049 - Clear the image preview when hitting an error#3067
miketaylr merged 4 commits intomasterfrom
issues/3049/1

Conversation

@miketaylr
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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