Johann-S / bs-custom-file-input

A little plugin for Bootstrap 4 custom file input
https://bs-custom-file-input.netlify.com/
MIT License
208 stars 38 forks source link

Is it a problem if we call bsCustomFileInput.init() again after an ajaxSuccess event? #73

Open drauch opened 4 years ago

drauch commented 4 years ago

Is it a problem if we call bsCustomFileInput.init() again after an ajaxSuccess event? Does it hurt existing custom file inputs, does it "double the trouble" so to say?

philwolstenholme commented 3 years ago

image-2020-11-26-09-53-30-068

Yes, I believe it can cause duplication of the label text.

It would be nice if we could pass a DOM element to the plugin to only target a specific element or parent.

drauch commented 3 years ago

It would be nice if we could pass a DOM element to the plugin to only target a specific element or parent.

Yes, that would be splendid!