Skip to content

Commit fa2f1cf

Browse files
Mike Taylordaliacoss
Mike Taylor
authored andcommitted
Issue webcompat#986. Fix bug when removing uploaded image.
1 parent 8d8040a commit fa2f1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webcompat/static/js/lib/bugform.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function BugForm() {
278278
uploadWrapper.addClass('is-hidden');
279279
removeBanner.on('click', _.bind(function() {
280280
// clear out the input value, remove the preview and hide the banner
281-
this.uploadField.val(this.uploadField.get().defaultValue);
281+
this.uploadField.val(this.uploadField.get(0).defaultValue);
282282
label.css('background', 'none');
283283
removeBanner.addClass('is-hidden');
284284
uploadWrapper.removeClass('is-hidden');

0 commit comments

Comments
 (0)