Skip to content

Commit

Permalink
Issue webcompat#986. Fix bug when removing uploaded image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor authored and daliacoss committed Mar 29, 2016
1 parent 8d8040a commit fa2f1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webcompat/static/js/lib/bugform.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function BugForm() {
uploadWrapper.addClass('is-hidden');
removeBanner.on('click', _.bind(function() {
// clear out the input value, remove the preview and hide the banner
this.uploadField.val(this.uploadField.get().defaultValue);
this.uploadField.val(this.uploadField.get(0).defaultValue);
label.css('background', 'none');
removeBanner.addClass('is-hidden');
uploadWrapper.removeClass('is-hidden');
Expand Down

0 comments on commit fa2f1cf

Please sign in to comment.