From 3f4a54b698aa75cd6072e49d9adee453d293e4cc Mon Sep 17 00:00:00 2001 From: Chirag Bhatia Date: Tue, 26 Jun 2018 00:49:06 +0530 Subject: Bugfix for #48378 - Resetting value of input element to fix Chrome-specific issue --- app/assets/javascripts/profile/gl_crop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/profile') 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); -- cgit v1.2.3