Prerequisites
Steps to reproduce the issue
- attach the fileselect event to your fileinput componenet like this
$("#file-input").off("fileselect").on("fileselect", function (event) { console.log("fileselect"); event.stopPropagation(); event.preventDefault(); });
Expected behavior and actual behavior
When I follow those steps, I see in fileselect printed twice in the console
I was expecting it to be printed only once
Environment
Browsers
Operating System
Libraries
- jQuery version: 2.2.4
- bootstrap-fileinput version:5.5.5
Isolating the problem
Prerequisites
masterbranch of bootstrap-fileinput.Steps to reproduce the issue
$("#file-input").off("fileselect").on("fileselect", function (event) { console.log("fileselect"); event.stopPropagation(); event.preventDefault(); });Expected behavior and actual behavior
When I follow those steps, I see in fileselect printed twice in the console
I was expecting it to be printed only once
Environment
Browsers
Operating System
Libraries
Isolating the problem