From d2642eea92eb4ddfaf4ff69affeaae93e34a032a Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 8 Aug 2018 22:13:26 +0800 Subject: [PATCH] Fix handling drag and drop event on FireFox See: https://github.com/kartik-v/bootstrap-fileinput/issues/1283 --- resources/assets/src/js/skinlib/upload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/src/js/skinlib/upload.js b/resources/assets/src/js/skinlib/upload.js index 099525ca..961cea6e 100644 --- a/resources/assets/src/js/skinlib/upload.js +++ b/resources/assets/src/js/skinlib/upload.js @@ -11,6 +11,7 @@ function initUploadListeners() { $('body') .on('change', '#file', () => handleFiles()) + .on('filebatchselected', '#file', () => handleFiles()) .on('ifToggled', '#type-cape', () => handleFiles()) .on('change', '#skin-type', function () { if ($('#file').prop('files').length === 0) {