diff options
author | Chirag Bhatia <chiragbhatia2006@gmail.com> | 2018-06-26 00:49:06 +0530 |
---|---|---|
committer | Chirag Bhatia <chiragbhatia2006@gmail.com> | 2018-06-26 00:49:06 +0530 |
commit | 3f4a54b698aa75cd6072e49d9adee453d293e4cc (patch) | |
tree | b8dc8276799c1649c8e9330737edeedbb5a2e6ff /app/assets/javascripts/profile/gl_crop.js | |
parent | dd949b0be4b2187d01a05ea1ce32abc295077897 (diff) | |
download | gitlab-ce-3f4a54b698aa75cd6072e49d9adee453d293e4cc.tar.gz |
Bugfix for #48378 - Resetting value of input element to fix Chrome-specific issue
Diffstat (limited to 'app/assets/javascripts/profile/gl_crop.js')
-rw-r--r-- | app/assets/javascripts/profile/gl_crop.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/profile/gl_crop.js b/app/assets/javascripts/profile/gl_crop.js index c6d809d84a6..3e7f3d49d33 100644 --- a/app/assets/javascripts/profile/gl_crop.js +++ b/app/assets/javascripts/profile/gl_crop.js @@ -47,7 +47,8 @@ import _ from 'underscore'; var _this; _this = this; this.fileInput.on('change', function(e) { - return _this.onFileInputChange(e, this); + _this.onFileInputChange(e, this); + this.value = null; }); this.pickImageEl.on('click', this.onPickImageClick); this.modalCrop.on('shown.bs.modal', this.onModalShow); |